polyphony only with MIDI?

admant's icon

Hello all, sorry for maybe noob question, but can I just build a polyphonic synth with rnbo without the MIDI feature?
All the time when I search for polyphony in video tutorials the MIDI comes in.

Thanks

Antonio

Jan M's icon

Hello ADMANT,

What exactly do you mean with "without the MIDI feature"? do you want to control the voices manually without sending MIDI messages?
I that case you top level [rnbo~] object should be monophonic and inside you can place a polyphonic sub patcher with the @voicecontrol attribute set tu user: user

[p @title my-patcher @polyphony 6 @voicecontrol ]

using the [set target] and set [set mute] objects you can access/control the individual voices.

Is that what you are aiming for?

admant's icon

YES! Exactly.
The key is the simple vs user voice controller.
Thank you sooo so much!
Now I will take the complete tour here. Looking on how to manage the busy/free state of subpatches (I am used to poly~ object but totally new to rnbo).
Thanks again.

Antonio

admant's icon

Still, I cannot get to the point. Is there a way to simulate the poly~ object behavior and the "note $1" message?
In other words, my goal is to have the automatic voice allocation (send my values to the first voice that is not busy) without voice stealing (nothing happens if no free voices are available) and without using the midi objects.
Do I have to do all the patching to manage the mute/target stuff by querying the busy/free map? That sounds complicated...
No other way?

Attached is a simple example of what I am in.

Thank you in advance

Antonio

ManageVoiceStealing.maxpat
Max Patch

admant's icon

Ok, ok, it was not soo so hard, it took me only a few days to find the way in the world of codebox. I created an array with the busy/free voice status and the indexOf() function to set the target before sending out the values to the polyphonic subpatch. About the topic, simply I had to substitute the midiparse object with the listin.