SuperCollider: load a mono Buffer from a single channel of a multichannel file

953 views Asked by At

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]

1

There are 1 answers

0
Dan Stowell On

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]);