Forums > MaxMSP

sfplay~ changing number of channels.

Sep 02 2010 | 9:44 am

Hello everyone!
Is it possible to change the number of channels of an [sfplay~] object by sending a message? I mean, without writing [sfplay~ 2], for having the two channels outlets. i want to have an [sfplay~] and setting the number of channels later!


Sep 02 2010 | 10:01 am

It’s not possible. You’ll need to use scripting techniques to create your sfplay instance. This will probably generate some clicks in the audio…

But you could also use [sfplay~ 8] (8 is an exemple, could be less) and route the outputs depending on the number of channels in your file. To get the number of channels, use sfinfo~.


Sep 02 2010 | 5:23 pm

i though so… this is what i was trying to avoid… looking for a simpler way! anyway, thanks a lot!

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > MaxMSP