javascript - Stereo convolution with web audio -
I am trying to explain mono impulse with a stereo audio file using the web audio API. Instead of having the true stereo output to the problem, I'm getting what looks like the same track repeated for both channels and looks like here is my code:
var context = new AudioContext (); Var source = context.createBufferSource (); Source Buffers = buffers.user; // stereo file var splitter = context.createChannelSplitter (2); Var Confollor = Reference. Credit Convolver (); ConvolverL.normalize = false; L.buffer = buffers.pulse at Condole; // mono impulse var condolare r = context.Cracket consolver (); ConvolverR.normalize = false; Condolevar R. Buffer = buffers.psy; // same mono impulse merging separately = reference. Generation Channel Major (2); Var gain = context.createGain (); Gain.gain.value = 0.75; // Connection connection source. Connect (splitter); Splitter.connect (convolverL, 0); Splitter.connect (Row, 1); Condolev L. Connection (Merge, 0, 0); R Connect to Condole (Merge, 0, 1); Merger.connect (profit); Gain.connect (context.destination); Source.start (0);
Comments
Post a Comment