Skip to content

Instantly share code, notes, and snippets.

@ZECTBynmo
Created May 5, 2013 02:53
Show Gist options
  • Save ZECTBynmo/5519501 to your computer and use it in GitHub Desktop.
Save ZECTBynmo/5519501 to your computer and use it in GitHub Desktop.
var engine = require("node-core-audio").createNewAudioEngine();
engine.addAudioCallback( function(inputBuffer) {
var outputBuffer = inputBuffer;
for( var iSample=0; iSample<outputBuffer[0].length; ++iSample ) {
outputBuffer[0][iSample] = iSample / outputBuffer[0].length;
}
return outputBuffer;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment