I have been trying to get an oscillator sound to play in only one channel and I have not been able to get it to work.
I tried to use a panner
node to set the position of the sound, but it still plays in both the channels, just not as loud in the more distant channel.
My latest attempt tried to use a channel merger but it still plays in both channels:
var audioContext = new webkitAudioContext();
var merger = audioContext.createChannelMerger();
merger.connect(audioContext.destination);
var osc = audioContext.createOscillator();
osc.frequency.value = 500;
osc.connect( merger, 0, 1 );
osc.start( audioContext.currentTime );
osc.stop( audioContext.currentTime + 2 );
How do you create an oscillator that only plays in a single channel?