Sync external BPM to RNBO made plugin

Massimiliano Bellavia's icon

Hi you all, and thanks in advice for your help!

I am a total newbie with Max and RNBO but I'm following some tutorials in order to build my own VSTs with RNBO!

I made a pretty decent delay plugin, perfectly working with Logic Pro X.

Now I want to take it a step further by implementing BPM sync with Logic.

What I want is a Delay that follows BPM and a selector that allows me to select the division (1/4, 1/8, 1/8 dotted, and so on)

But I cannot find a way to link the external transport BPM to the plugin.

Can you help me?

Thank you!

Alex Norman's icon

We have a feature request in to make a way to create a parameter that sets note/tempo relative values in an easy way but we don't have that yet. In the mean time I have an example patcher that does it, feel free to adapt it for your needs. For instance, for delay you will likely want to change the translate result to samples instead of hz.

One thing to be careful of is that if you remove any of the enum values in the param, you'll have to remove the associated value from the list below it. I think that the pair of these represent the entirety of the note relative divisions that we support internally, though you could add your own values if there is something that is missing, just know that we use 480 as our "ppq".

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