AUv2 - Dynamic parameter list unit update

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

Hi,

When developing a AUv2, if I have a static list of parameters I'm able to set the corresponding unit for each one. Everything works perfect.

However, having a dynamic list of parameters is a big challenge. Every time I have a new parameter to configure to host, I call:

PropertyChanged (kAudioUnitProperty_ParameterList, kAudioUnitScope_Global, 0);
PropertyChanged (kAudioUnitProperty_ParameterInfo, kAudioUnitScope_Global, 0);

The calls triggers GetParameterInfo, the parameter is reported with the new units and ranges, but it always appears on the host (Ableton Live) as a generic parameter between 0 and 1.

I've been spending hours trying to understand why this is happening but so far no further developments. Stuck in a never ending loop.

Does anyone has a clue on how this works and what should be the appropriated order of things. Can someone point me to the source code of a plugin that relies on this mechanism?

I know this is possible because Native Instruments Battery 4 does this.

Thank you!

Best regards,

Nuno

Post Reply

Return to “DSP and Plugin Development”