<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Here at the MOD we forked the MDA plugins in order to use “real values” instead of the -1 to 1 range.<div class=""><br class=""></div><div class="">You can check it at <a href="https://github.com/portalmod/mda-lv2" class="">https://github.com/portalmod/mda-lv2</a></div><div class=""><br class=""></div><div class="">Cheers</div><div class=""><br class=""></div><div class="">Gianfranco</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Em 27/05/2015, à(s) 16:42, Christopher Arndt <<a href="mailto:chris@chrisarndt.de" class="">chris@chrisarndt.de</a>> escreveu:</div><br class="Apple-interchange-newline"><div class="">Is there a way to have the value range of a control input port of a LV2<br class="">plugin be in one range (e.g. 0.0f..1.0f or 0-127) and have the LV2 host<br class="">display the values scaled or mapped to a different range (e.g. 20-20,000<br class="">Hz or 2 - 2000 ms)?<br class=""><br class="">I know about lv2:scalePoints and the lv2:enumeration property to handle<br class="">list of discrete values and the units:unit properties to set the value<br class="">unit, but how do I map the actual values of a large continuous range? Is<br class="">there a way to define a transfer function? Or does that need to happen<br class="">inside the plug-in code?<br class=""><br class="">And what about more advanced parameter display, e.g. a wet/dry setting,<br class="">which I want to display as going from 100:00 through 50:50 to 0:100, but<br class="">the actual parameter value is just 0.0..1.0 (or -1.0..+1.0)?<br class=""><br class=""><br class="">Background: I'm trying to improve the JX10.ttl from the mda.lv2<br class="">collection [1], so that the parameter display in the LV2 host generated<br class="">plug-in UI is more useful and intuitive, i.e. instead of e.g. the slider<br class="">for OSC Tuning being going from 0.0 .. 1.0, I want it to be displayed as<br class="">-24 .. +24 cents. All control input ports of the plugin are defined as<br class="">taking a value 0.0f..1.0f.<br class=""><br class="">[1] <a href="http://svn.drobilla.net/lad/trunk/plugins/mda.lv2/" class="">http://svn.drobilla.net/lad/trunk/plugins/mda.lv2/</a><br class=""><br class=""><br class="">Chris<br class=""><br class="">_______________________________________________<br class="">Linux-audio-dev mailing list<br class=""><a href="mailto:Linux-audio-dev@lists.linuxaudio.org" class="">Linux-audio-dev@lists.linuxaudio.org</a><br class="">http://lists.linuxaudio.org/listinfo/linux-audio-dev<br class=""></div></blockquote></div><br class=""></div></body></html>