With the new audioProcessorParameter, how do I handle automation? I've been trying to work off of the sample but nothing changes in the host (Abelton). So For example how to I parse values to be displayed on the automation controls? The documentation is a little sparse.
class FloatParameter : public AudioProcessorParameter
{
public:
FloatParameter (float defaultParameterValue, const String& paramName, const String& unitName)
: defaultValue (defaultParameterValue),
value (defaultParameterValue),
name (paramName),
units(unitName)
{
}
float getValue() const override
{
return value;
}
void setValue (float newValue) override
{
value = newValue;
}
float getDefaultValue() const override
{
return defaultValue;
}
String getName (int maximumStringLength) const override
{
return name;
}
String getLabel() const override
{
return units;
}
float getValueForText (const String& text) const override
{
return 0.0f;//text.getFloatValue();
}
String getText ( float value, int ){
return "test?";
}
int getNumSteps() const{
return 2;
}
private:
float defaultValue, value;
String name, units;
};
