Skip to content

Handling arrays directly #36

Open
Open
@dy

Description

@dy

Pondering on audio-noise and audio-filter modules. What if we extend basic no-stream modules to work with float arrays and not force AudioBuffer type, while we have a chance #34?

+ that makes audio-* components first-class citizens, allowing for low-level processing and graceful readme examples
+ that lowers entry barrier for non-audio folks
+ that enables direct nodejs application of modules, out of @audiojs infrastructure

const noise = require('audio-noise/pink')()

let data = noise(new Float32Array(1024))

//vs

let buf = noise(new AudioBuffer({length: 1024}))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions