[LV2] Custom value display text for control ports

Dominique Würtz dwuertz at gmx.net
Sun Aug 19 13:47:26 PDT 2018


Am Sonntag, den 19.08.2018, 16:26 +0200 schrieb Hanspeter Portner:
> On 8/19/18 10:17 AM, Dominique Würtz wrote:
> > Is it possible to customize the way a control port value is
> > represented
> > as text in the host?
> > E.g. for a stero pan control with value range -1.0 .. +1.0 I want
> > it to
> > be displayed as:
> > 
> > -100% Left .. -1% Left, <C>, 1% Right .. 100% Right.
> 
> Yes, LV2 supports arbitrary control ranges and units.

Thanks, but this is not sufficient here, I'm afraid. In my example, I
want the value range -1.0 <= x < 0.0 to be displayed as "x% Left" and
the value range 0.0 < x <= +1.0 as "x% Right". So no simple static
unit.

For the center value 0.0, I figured I can specify a scalePoint to have
it displayed as "<C>".




More information about the Devel mailing list