PnS: control update frequency of computeOutputData...

Official support for: bluecataudio.com
Post Reply New Topic
RELATED
PRODUCTS

Post

Hi,
I'm trying not to overload my host with data.
I assume computeOutputData runs once per block?
My function looks like this:

Code: Select all

void computeOutputData() { 

     outputParameters[0] = tempo;

 }
would the following be any less intesive?

Code: Select all

void computeOutputData() { 
     if(tempo != lastTempo) {
        outputParameters[0] = tempo;
     }
 }
Thanks.

Post

Output data is actually computed less often than for every buffer, and Plug'n Script will send automation and/or MIDI data only if the output parameter has changed, so you do not need to bother adding checks.

The output data refresh rate can actually be controlled in the plug-in's global setting:
Image

Post

Excellent, thank you.

Post Reply

Return to “Blue Cat Audio”