Web Audio Offline Context and Analyser Node
Is it possible to use the Analyser node in the offlineAudioContext to do frequency analysis? I found out that ScriptProcessor 's onaudioprocess event still fires in the offlineAudioContext and this was the only event source I could use to call getByteFrequencyData of the Analyser Node. As below: var offline = new offlineAudioContext(1, buffer.length, 44100); var bufferSource = offline.createBufferSource(); bufferSource.buffer = buffer; var analyser = offline.createAnalyser(); var scp = offline.createScriptProcessor(256, 0, 1); bufferSource.connect(analyser); scp.connect(offline.destination); /