3

Is there any way to load a mono buffer by reading a single channel from an stereo or maybe a multichannel file? thx!

[asked on behalf of someone else]

Dan Stowell
  • 4,618
  • 2
  • 20
  • 30

1 Answers1

3

Yes: Buffer has a "readChannel" method that does exactly what you ask.

e.g. to load channel 3:

b = Buffer.readChannel(s, pathToAudioFile, channels: [3]);
Dan Stowell
  • 4,618
  • 2
  • 20
  • 30