How get the level of each channel from p5.AudioIn() ?


Is there a way to use getLevel() separately on each channel of the (supposed) stereo stream from p5.AudioIn() ? I want to use the right and left level as "controler datas" for a game.

In Processing, with Minim I can choose the channel like this:

inputL = in.left.level()

inputR =in.right.level()

But it's not working in p5.js.

Any idea ?

Thank you.

Sign In or Register to comment.