Page 1 of 1

Fraction digits without scaling

PostPosted: 09 Oct 2013, 20:09
by sunmachine
It would be great if we could set the fraction digits for the displayed values even if scaling is not enabled.

Re: Fraction digits without scaling

PostPosted: 09 Oct 2013, 20:53
by CopperPhil
When the scaling is not enabled, the displayed value is the one provided by the plug-in through the VST.AU interface... It's a text string, I've no idea about its meaning...

So I could detect that the text contains only a numeric string and tweak it, but... :?

Re: Fraction digits without scaling

PostPosted: 09 Oct 2013, 21:31
by sunmachine
So how does scaling work? Isn't there converting text to number involved, too?

Re: Fraction digits without scaling

PostPosted: 09 Oct 2013, 21:35
by CopperPhil
The scaling is a simple rule of three. When scaling is activated the wrapper does not use the text string provided by the plug-in, but use instead the [0..1] real value and scale it to fit the specified min/max values.

Re: Fraction digits without scaling

PostPosted: 09 Oct 2013, 21:43
by sunmachine
Ah ok, so the plug-in actually sends two values... a number and a string.

Re: Fraction digits without scaling

PostPosted: 09 Oct 2013, 21:53
by CopperPhil
Yes indeed. The number is used by the DAW/Sequencer for automation and the text is usually a copy of what is displayed on the plug-in GUI, but not always...

So we can use the number and scale it when the text is bad. But if the plug-in is done well, the text value is more relevant.