title: Web Audio: No sound in right channel
body: <p>I'm trying to create a custom panning control using the Web Audio API, but I can't get any sound to come out of the right channel using the channel splitter and merger nodes:</p>
  
  <pre><code>var context = new webkitAudioContext(),
      destination = context.destination,
      osc = context.createOscillator(),
      gainL = context.createGainNode(),
      gainR = context.createGainNode(),
      splitter = context.createChannelSplitter(2),
      merger = context.createChannelMerger(2);
  
  osc.frequency.value = 500;
  
  osc.connect(splitter);
  
  splitter.connect(gainL, 0);
  splitter.connect(gainR, 1);
  
  gainL.connect(merger, 0, 0);
  gainR.connect(merger, 0, 1);
  
  osc.noteOn(0);
  
  gainL.gain.value = 0.1;
  gainR.gain.value = 0.5;
  
  osc.noteOff(2);
  
  merger.connect(destination);
  </code></pre>
  
  <p>Am I missing something obvious here? There's a JSBin preview of the above code here: <a href="http://jsbin.com/ayijoy/1/">http://jsbin.com/ayijoy/1/</a></p>
  
  <p>I'm running Chrome v24.0.1312.57, just in case that's of any use.</p>