Accessing per-voice params inside polyphonic RNBO subpatcher

snonll's icon

Hi there,

I’m able to control the per-voice params inside a polyphonic RNBO subpatcher from Max — with attrui object using subpatch_name/voice_number/parameter_name. Is it possible to control these params from the top-level RNBO patch?

Thanks


Wil's icon

You can use inlet [in 1]

Untitled.mp4


snonll's icon

Thanks WIL,

That makes more sense to me now.

To be more specific, I was hoping to control the subpatcher instances from within RNBO, so nothing coming in from Max. I’ve been trying to do this using the SET object, with the same arguments as the ATTRUI object — [set subpatch_name/voice_number/parameter_name] connected to the first inlet of the subpatcher — but this gives an error.

Adding @exposevoiceparams 1 to the subpatcher offers the options “/parameter_name” for each of my params inside, so I get [set /parameter_name] but don’t know how to access instances from there.

The idea is to export RNBO to Raspberry Pi and control per-voice params via MIDI.

Thanks again for any help.

Alex Norman's icon

SNONLL,

Have you checked out midi mapping in the RNBO web interface?

Wil's icon

Ah. Then like this.

Untitled.mp4


and just in case

Untitled2.mp4

// I don't use polyphonic RNBO - so dont know targeting individual voices

// I usually export monophonic max external from RNBO and put mc wrapper - target individual voices easy with mc - maybe someone else help

snonll's icon

WIL — thanks for the examples, I appreciate it!

ALEX — ah ok, I can see the params for all instances in midi mapping, thank you! And I can set the controller’s range and scaling in RNBO with the params @min @max @fromnormalized.

I also found the voice object useful in conjunction with list.lookup / list.nth for applying unique per-voice settings.