<div dir="ltr"><div>This has a bunch of good information.</div><a href="https://thorwil.wordpress.com/2007/05/01/fan-sliders/">https://thorwil.wordpress.com/2007/05/01/fan-sliders/</a><br><div>I'll try to get some time this weekend to formulate a considered reply.</div><div>Immanuel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 16, 2017 at 9:25 AM, Christopher Arndt <span dir="ltr"><<a href="mailto:chris@chrisarndt.de" target="_blank">chris@chrisarndt.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm currently trying to write a software MIDI/OSC control panel in<br>
Kivy/Python [1]. I want to implement a sensible knob behaviour but I<br>
have trouble getting this right. The general idea is:<br>
<br>
- Click (starting somewhere in the area of the knob control) and drag<br>
upwards/downwards (y-axis) increases / decreases the value.<br>
- Dragging left/right (x-axis) decreases step size of increments /<br>
decrements.<br>
- Each knob has a min/max value.<br>
<br>
My questions are:<br>
<br>
- What should I use as the reference point for finding the distance of<br>
the movement? The centre of the knob or where the first touch event<br>
occurred?<br>
- Should I apply the distance to the value directly or use the distance<br>
as a relative value (i.e. increment / decrement to the value when the<br>
touch started)? If the former, how do I prevent value jumps?<br>
<br>
- Or, to put it another way: how do you guys actually implement knob<br>
behaviour?<br>
<br>
<br>
Chris<br>
<br>
<br>
<br>
[1] <a href="http://kivy.org/" rel="noreferrer" target="_blank">http://kivy.org/</a><br>
<br>
<br>______________________________<wbr>_________________<br>
Linux-audio-dev mailing list<br>
<a href="mailto:Linux-audio-dev@lists.linuxaudio.org">Linux-audio-dev@lists.<wbr>linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-dev" rel="noreferrer" target="_blank">http://lists.linuxaudio.org/<wbr>listinfo/linux-audio-dev</a><br>
<br></blockquote></div><br></div>