pizzicato icon indicating copy to clipboard operation
pizzicato copied to clipboard

Splitter returns the left channel on both sides.

Open michaelslevy opened this issue 5 years ago • 0 comments

I've tried doing these several different ways. The source node shows two channels. Everyway I arrange it, both analyzers return data for the left side. Any tips on how to successfully connect a splitter node?

    let sound = new Pizzicato.Sound(path, function() {

      const context = Pizzicato.context;
      let analyserLeft = context.createAnalyser();
      let analyserRight = context.createAnalyser();

      /* Add Stereo Splitter*/
      let splitter = context.createChannelSplitter(2);

      let source = sound.getRawSourceNode();
      source.connect(splitter);

      /* Connect analyzers */
       splitter.connect(analyserLeft, 0);
       splitter.connect(analyserRight, 1);
 }

michaelslevy avatar Apr 18 '19 18:04 michaelslevy