[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Re: Mono -> stereo buffer?



I got there in the end:

// load a mono file into a stereo buffer
~buf = Buffer.readChannel(s,"monoSound.wav", channels:[0,0]);

I don't know why I didn't think of that before.

Nathaniel


2009/7/25 Nathaniel Virgo <nathanielvirgo@xxxxxxxxx>
Hi,

I was wondering whether there's any way to turn a mono Buffer into a stereo (or multichannel) one, by duplicating the channel?

Most of my sample manipulation synths assume stereo samples, but occasionally I want to load a mono sample into one of them, at which point I have to go back and make a mono version of the synth - which isn't always practical - or a stereo version of the file.

If there isn't already a way, it would be really good to have a method that works in the same sort of way as .normalize, to make mono Buffers into stereo ones.

Thanks,
Nathaniel