AUParameterNode defaultValue ??

We're seeing the following when running auvaltool

It seems AUParameterNode cannot be constructed with a default value and has no option to set default values via property or method so what does this mean? ....

Does it mean we ALSO have to iterate all the parameters using the old fashioned long winded toolbox calls ?

Or does it mean nothing at all?

The "Will fail in future auval version" is worrying!

Values: Minimum = 5.000000, Default = 0.000000, Maximum = 300.000000

Flags: Expert Mode, Readable, 

WARNING: use -strict_DefP flag

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

* Parameter's Published defaultvalue does not fall with [min, max] range  *

* This will fail using -strict option. Will fail in future auval version  *

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

  -parameter PASS

Replies

So a whole day's work on this one yields a result of sorts:

Setting the value of a parameter at the time the tree is created appears to satisfy auvaltool's condition of a "default" value.

Really Apple ... would createParameterWithIdentifier ... min,max,default ... have been so difficult ?

If I remember correctly, if you have default/initial value set in your DSP state implementorValueProvider will pick it up and you won't need to set it initial value via AUParameter.

Another thing to keep in mind is that hosts can set AUParameter to a value that's outside the min/max range. So, be sure to handle that.