Created
October 2, 2017 16:47
-
-
Save kosso/7cd06b19839f45355574449eb5a6a70e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. | |
processor = audio_context.createScriptProcessor(0, 1, 1); | |
processor.onaudioprocess = function (event) { | |
var array_left = event.inputBuffer.getChannelData(0); | |
var array_right = event.inputBuffer.getChannelData(1); | |
// .... | |
}; | |
// Begin retrieving microphone data. | |
audio_context.microphone.connect(processor); | |
processor.connect(audio_context.destination); | |
.. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment