RNBO / Polyphony for audio / Subpatch bug

Loris Bernot's icon

Hi there,

I'm currently developing plug ins, under rnbo, then convert in c++ etc.
Everything when well in stereo. Had a lots of fun pacthing. But comes the time to dig multichannel VST / AAX.

The good way to do it (correct me if not), is to create a polyphony patch, and place the processing in this rnbo polyphony.

this way, one rnbo export as polyphony 16 convert a wide range situation. 9.1.6 format and under.

BUT : some processing are common to all 16 layers, for example, a specific sin wav that trigger signals in all 16 channels. To avoid processing 16 times this sin wav, and preserve efficient plug ins, I need to have common processing a level upper.

So my patch is done like this : Max / rnbo~ / PolyProcess @polyphony 16 /
I assume everything inside polyphony is activated on demand by the daw (with inport format)

then processing1 is the heart of the processing, the more futur complex part, and here is the bug :

Inside this sub

PLUG Template MC v05 Loris OK.maxpat
Max Patch

patch , all subpatchs do not show in and out in the subptach box

This is very aukward, and really hard to dev complex and organise patch without this.

knowing that : If the first patch is named : rnbo~ @polyphony 16

i can have as level of subpatchs as want, but I do not have the common patch, and everything is duplicated 16 times for 9.1.6 format. Makes heavy plug in.

I have attached a screen shot of all of that, and the patch. If anyone have a clue....
Is it a bug, or did i miss something ?

Cheers

Rei Kurosawa's icon

Hi Loris,

Keeping shared processing in a non-polyphonic parent above a polyphonic subpatcher is supported. The RNBO guide "Working with Polyphony and Voice Control" describes that arrangement, including a shared LFO outside the voices.

One specific discrepancy in your attached file: inside `p testoutmissing` there are `in 1`, `out 1` and `out~ 2`, but the saved parent box has `numoutlets: 0`. That matches the missing outlets in your screenshot. I inspected the saved patch data, but haven't reproduced it in Max, so I can't tell what caused that mismatch.

Which RNBO version are you using, and are there any RNBO compilation errors in the Max Console when you open this patch?

Separately, `inport format` is a named message input, not automatic DAW channel detection. Does your exported C++ wrapper explicitly send it the channel count? That is separate from the missing-outlet problem.

Written with AI assistance.