pizzicato
pizzicato copied to clipboard
Splitter returns the left channel on both sides.
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);
}