Getting Tempo Change Notifications From Renoise

Hi,

I’m working on a vst plug effect (my first) and I’m wondering how I will know when the user changes the tempo.

So far, I see that I could just call getTimeInfo() over and over again, but that kind of “busy waiting” feels wrong. Is there some kind of event notification coming from the host (Renoise) into my plug so I can cleanly know when the tempo changes?

Thanks,
-Harold

dblue’s the one to ask about this :P

also, try #musicdsp on efnet

The people on #musicdsp say it’s okay to use a busy waiting strategy, ghetto.

Any other opinions? dblue?

Thanks B-S.

Yips, there are no notifications. You have to poll the timing info on each process[replace] call…

Not much more to add that hasn’t already been said here. Basically you have to manually call getTimeInfo() as regularly as you need to and then write your own code to handle whatever you’re doing. It’s quite an intensive function so it’s not recommended to do it every sample. Once once per processing block is considered to be enough:

``` function processReplacing() {

getTimeInfo();

for (i = 0; i < samplesToProcess; i++) {

// processing here

}

}

</quick pseudocode>  
  
.