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
// Audio Buffer Source | |
var fileInput = $("#audio-file"); | |
bufferSource.gain.value = 1; | |
bufferSource.loop = true; | |
bufferSource.connect(oscillatorGain); | |
fileInput.addEventListener("change", function() { | |
var reader = new FileReader(); | |
reader.onload = function(ev) { | |
context.decodeAudioData(ev.target.result, function(buffer) { |