audio-through
Audio processor or generator constructor.
let createThrough = let write = // panned sine generatorlet through = // hook up createThrough → speaker loop { ;}
createThrough(fn, format='array')
Takes channel processing function and format, returns a function generating audio data of the indicated format.
Output data format can be a string 'planar stereo array'
, '5.1 audiobuffer 44100'
etc., or an object with format properties. See audio-format for full disclosure.
through(target|length=1024)
Fill passed target
or create a new one of the length
, based on fn
from the constructor. Target type is defined by format
.
Related
See audio-through-stream for previous (stream) version of audio-through.
License
(c) 2017 Dmitry Yvanov @ audiojs. MIT License