How can i open only the right channel into a buffer?

Luis Marques's icon

Hi,

I just want be able to open only the right side of a stereo wave file. I post the patch and a stereo file.

Thanks

Luis Marques

1788.StereoTESTmini.aif
aif
pid's icon
Max Patch
Copy patch and select New From Clipboard in Max.

only ref the right ?

Luis Marques's icon

Hi!
Thanks for the answer. My goal here is open a stereo file and reverse the 2 channels. Left and Right. I can do it to the Left channel, but it seams difficult to isolate the 2 channels from the buffer~ and operate, the left and them the right channel.

Thanks

Luis Marques

pid's icon
Max Patch
Copy patch and select New From Clipboard in Max.

sorry, rush-posted. i forgot the channel choosing business is index~ only...

...so you can do it but not with interpolated output.

?

Timo Rozendal's icon

I think the mxj buf.Op will be useful for you, check the buf.Op.maxhelp file

Luis Marques's icon

hi
pid- your solution is good, but i want to deal whit data from buffer using peek~, not in audio environment.
Timo- I'll check mxj buff.Op

Thanks

Luis Marques