Skip to content

Instantly share code, notes, and snippets.

@mmckegg
Created January 12, 2015 12:07
Show Gist options
  • Save mmckegg/77e5141e09f4bb96b141 to your computer and use it in GitHub Desktop.
Save mmckegg/77e5141e09f4bb96b141 to your computer and use it in GitHub Desktop.
function monitor(node){
var j = node.context.createScriptProcessor(4096, 1, 1)
j.onaudioprocess = function(e){
console.log(e.inputBuffer.getChannelData(0)[0])
}
node.connect(j)
j.connect(node.context.destination)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment