<div dir="ltr"><div><div>This mapping is very nice tried it today with several Faders. Big advantage is that you don´t overshoot the target  but still get to the position desired reproduce able and constant.<br><br></div>Something like this will work on Micro controllers. Sending might be possible with this with just one float which would not hurt too much.<br><br></div>Thank you for posting this.<br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-14 18:52 GMT+02:00 Felix Homann <span dir="ltr"><<a href="mailto:linuxaudio@showlabor.de" target="_blank">linuxaudio@showlabor.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I must admit I have missed the start of this conversation which is a bad thing to begin with. Nevertheless, it might be interesting to know how some common OSC controllable hardware is handling faders. So here's how the Midas M32, Behringer X32 and X Air mixers handle fader/dB values over OSC:<div><br></div><div>0. The faders range from -90/-oo dB to +10 dB.</div><div>1. Internally fader values are represented as "index" values within [0, 1023]. </div><div>2. The mapping from "index" idx to dB is piecewise linear like this</div><div><div>dblevel = 40  * idx / (steps - 1) - 30; if idx >= steps / 2</div><div>                                 80  * idx / (steps - 1) - 50; if idx >= steps / 4</div><div>                                 160 * idx / (steps - 1) - 70; if idx >= steps / 16</div><div>                                 480 * idx / (steps - 1) - 90; if idx > 0</div><div>                                 -144;                         if idx = 0</div></div><div>with steps = 1024. The -144 representing -inf.</div><div><br></div><div>3. <span style="line-height:1.5">Fader values are being send from the mixer as float "level" values with level = idx/1023.f.</span></div><div>4. Fader values can <span style="line-height:1.5">be received from the mixer as</span></div><div>4.a)  floats within [0.f, 1.f]. The value is being rounded to one of the allowed values.</div><div>4.b)  strings representing the dB value e.g. "-2.3" for -2.3 dB.</div><div>5. The OSC address for dB and level values is the same. The mixer decides depending on the parameter type.</div><div><br></div><div>Kind regards,</div><div>Felix</div><div> </div></div>
<br>_______________________________________________<br>
ardour-dev mailing list<br>
<a href="mailto:ardour-dev@lists.ardour.org">ardour-dev@lists.ardour.org</a><br>
<a href="http://lists.ardour.org/listinfo.cgi/ardour-dev-ardour.org" rel="noreferrer" target="_blank">http://lists.ardour.org/listinfo.cgi/ardour-dev-ardour.org</a><br>
<br></blockquote></div><br></div></div></div></div></div>