Quadraphonic speaker panning in RNBO

Laura Papke's icon

Dear community,

I am currently trying to replicate a patch I made in Max, to be able to extract it as C++ from RNBO. My main struggle right now is to recreate the ambisonic speaker panning function. I used the ICST Ambisonic package in Max before and tried to build osmething similar using codebox in gen. Of course I did have some help using Copilot but unfortunately I am stuck right now.

To give you some context of the project, I have four sound sources that move in space. One sound travels from speaker to speaker while 2 sounds are moving randomly and one sound just sits in the middle of the room. The speakers are placed in a square formation.

I understood that I need to program each sound outside of gen, while the panning happens in the codebox within gen. But, I don't manage to get the parameters for each sound running, and also I only get out a signal from outlet one. Could maybe someone have a look and give me a hint what the problem could be?

Thank you! Greets, Laura

Max Patch
Copy patch and select New From Clipboard in Max.

mizu's icon

Hi Laura ! fast seeing in your patch, made some things to follow datas, but for parameters between rnbo and gen, i should be curious too for more infos :-)

michel

Max Patch
Copy patch and select New From Clipboard in Max.

Laura Papke's icon

Hi Michel,

Sorry for my late reply. But thank you for your patch, it helped me sooo much. I did have to make a few adjustments to my codebox code and also the params. Buuuut I made it work perfectly.

I am now taking the next steps, but first I wanted to share my progress with you ;).

Let me know what you think

Best, Laura

Max Patch
Copy patch and select New From Clipboard in Max.