title: How to intersect two audio channels?
body: <p>Not mix or merge, I need to intersect channels, like: L - R</p>
  
  <p>I can do this with createScriptProcessor:</p>
  
  <pre><code>let processor = context.createScriptProcessor(512, 2, 1)
  processor.onaudioprocess = e =&gt; {
    let inputL = e.inputBuffer.getChannelData(0),
        inputR = e.inputBuffer.getChannelData(1),
        output = e.outputBuffer.getChannelData(0),
        len = inputL.length,
        i = 0;
    for (; i &lt; len; i++) {
      output[i] = inputL[i] - inputR[i];
    }
  }
  </code></pre>
  
  <p>This do what I want, but ... is there a way to do this without <strong>createScriptProcessor</strong>, for example with createChannelMerger / createChannelSplitter? I'm looking for a more effective way.</p>