Additive synthesis of signals
Perform additive synthesis from a stream of frames. This is something like inverse of frame-hop.
//First create the push-frame functionvar pushFrame = require'overlap-add'256 64console.log'got a frame:' data//Then stick frames into itpushFrame
npm install overlap-add
Performs additive synthesis on a sequence of frames.
frame_sizeis the size of each frame
hop_sizeis the size of a hop between successive frames
ondata(frame)is a callback that gets fired each time a frame is full
Returns A function that you can call to push a frame of data into the stream.
(c) 2013-2015 Mikola Lysenko. MIT License