I’m not filing a feature request at the moment, but just asking: how to keep the display value of a knob consistent with the process method?
Let me explain:
Suppose I have a knob using the displayBase, displayMultiplier and displayOffset fields. Rack calculates the value to display in its own way. If I want the exact same value to be used in the process method I have to repeat the same computation that Rack is doing inside ParamQuantity::getDisplayValue().
I see the following issues:
- CPU waste (repeating 2 logs or 1 pow for something that has already been computed)
- code doubling
- possible inconsistency if the value returned by getDisplayValue is computed differently in a future release of Rack (some more maintenance work required from the devs).
The ideal thing would be to have a params[i].getDisplayValue().