sfplay~ changing number of channels.
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!
Nick.
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~.
p
i though so... this is what i was trying to avoid... looking for a simpler way! anyway, thanks a lot!
Nick