What is this array for in PnS

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

Post

Hello, I am wondering why we need this in the array, what exactly does it do?

Code: Select all

array<double> inputParameters(inputParametersNames.length);
Thank you.

Post

This is the array that holds the values of each of the input parameters you have declared and you generally use it in the updateInputParameters function. For example,

lfoFreq = inputParameters[2];

PnS actually puts the values into this array but you have to declare it so your programme can access those values.

This declares the array to have the same number of elements as the number of input parameter names you have already declared so PnS has a space to store each parameters value.

Post

Thanks for getting back to me. But I have seen some of the scripts do have not it, the gain plugin for example?

Post

Only scripts that do not have parameters will not have it. The gain example has this definition at the beginning.

Post

Ok many thanks for explaining that.

Post Reply

Return to “Blue Cat Audio”