Dynamically changing the maximum amount of voices in poly~
Hello!
I am building a polyphonic synthesizer with the ability to change the maximum amount of voices by pressing a tab. Now, using a [voices $1] message indeed changes the amount of voices, but not without resetting them. In addition to the slight pause before the user can continue playing, I am looking for a solution.
I have read about people using a [poly] object to allocate voices to a [poly~] patch, but I have no idea how to change the maximum amount of voices on [poly]. One way I possibly could see around this is creating multiple [poly] objects (each with different maximum voices) and using [route] or something to change which [poly] is in use. The [poly~] patch would have the very maximum amount of voices available at the start, with the [poly] objects controlling which voices are actually sent information.
This would maybe work for my current situation where I'm using tabs, but if the user was wanting to use a dial or slider to change maximum voices, I'd be stuffed! It also seems a little inefficient. If all of the [poly~] voices I'm not using are using DSP processing needlessly, surely I'll just be wasting away the CPU power? Feel free to correct if I'm misunderstanding how [poly~] and DSP processing work.
Sp, has anyone got any idea on how to change the maximum amount of [poly~] voices dynamically? Or muting/unmuting a range of them?
Hello,
I am also trying to change the number of voices with using [voices $1]. I am sending the number of voices from Processing to Max. However, when it reduces or increases in number every sound in the poly~ mutes and I get so much glitch until it starts looping again from 0. I am guessing it is happening because it resets the loop.
Hi again James. This is Zeynep.
I wrote the problem at facebook. Here are the couple of answers in case you still have the problem.


