< Back to IRCAM Forum

Dynamically changing number of loudspeakers?

Dear Community,

Forgive me for asking so many questions on the forum. I am new to the massive potential of spat5~. I was wondering, Is there a way in [spat5.spat~] to change the number of loudspeakers? I am working on a max application, where it would be a very nice feature to have. I can see the [spat5.spat~] has it as an attribute, but it seems unusable because of this error: “number of loudspeakers can not be dynamically changed”.

Many thanks, Marijn

1 Like

Hi,

This is the place to ask many questions; don’t apologize.

No, it’s currently not possible to change the number of loudspeakers in spat5.spat~.
In general, in the spat5 framework, attributes cannot be changed. They are used for the static initialization of objects, and cannot be changed during the lifetime (e.g. @inputs, @outputs, etc).

Still, one way to dynamically change the number of loudspeakers is to script the patcher. Using MC in Max8, this can be done quite elegantly. You’ll find an example in the tutorial spat5.tuto-mc2.

Best,
T.

1 Like

excellent! I will take a look.

Wow! this is awesome