curiosity - ParamQuantity: exp/log inverted?

hi,

looking at the Rack code of ParamQuantity:

it seems that exp/log comments are inverted? shouldn’t v = std::pow(-displayBase, v); be considered exp and v = std::log(v) / std::log(displayBase); log?

or is this a sort of convention that I don’t know?

thanks for any clarifications :slight_smile:

SetDisplayValue goes from the display value to the underlying value, so it is the inverse of std::string getDisplayValue which goes from underlying value to display value. So a parameter which is exp formatted (v displays as exp(v)) would have the inverse be log.

1 Like

clear, didnt see the right dsp value conversion above, thanks.