esonderegger / web-audio-peak-meter

Customizable peak meters, using the web audio API.
https://esonderegger.github.io/web-audio-peak-meter/
MIT License
125 stars 33 forks source link

Passing rerouted channels as source #21

Open siwa-net opened 3 years ago

siwa-net commented 3 years ago

Hi there!

First of all: Great plugin, really love it!

I have audio files where I want to reorder the channels in a different way and pass this reordered source to the plugin. Is this somehow possible? So I created a source -> splitter => gainNodes (reorder here) => merger -> splitter_2(used as peak-meter source) => destination graph. When passing the splitter_2 node into the createMeterNode function I only got one channel of the splitter connected (see image below). Is there a way to pass a reordered audio source to the plugin? Screenshot 2021-06-30 at 08 22 57

suterma commented 1 year ago

Great question. I also wondered what happens with audio sources that are mono or 5.1 for example.