<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Slider that can be &quot;stepped&quot; with keyboard Arrow keys?]]></title><description><![CDATA[<p>Hi all,</p>
<p>I would like to have a slider, which I can set up to be in range, say, from 0 to 255, which will be integer. I used the vsl slider ( <a href="https://puredata.info/docs/developer/PdFileFormat#r364" rel="nofollow">https://puredata.info/docs/developer/PdFileFormat#r364</a> ), and that one produces float values, but I can have an <code>[int]</code> box after that, and I get integers - that is fine.</p>
<p>However, depending on the size of the slider, sometimes the finest motion I can do with the mouse, results in jumps of more than 1 count - and the <code>vsl</code> slider seems to not react on arrow key presses.</p>
<p>So, I would like to have the possibility to &quot;nudge&quot; or &quot;step&quot; the slider in a defined increment of 1, using the arrow keys; for instance, if you try this in HTML:</p>
<pre><code class="lang-html">&lt;input type=&quot;range&quot; id=&quot;my_slider&quot; name=&quot;my_slider&quot; min=&quot;0&quot; max=&quot;255&quot; step=&quot;1&quot; /&gt;
</code></pre>
<p>.... then the resulting slider can be selected with a click, and then one can press the Arrow Left/Right (or Up/Down) keys, and the slider will increment/decrement the current value for the step (here 1).</p>
<p>Is there anything like that - maybe an external - in PD?</p>
<p>Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 10:46:51 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13178.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Dec 2020 08:54:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Slider that can be &quot;stepped&quot; with keyboard Arrow keys? on Thu, 10 Dec 2020 08:55:48 GMT]]></title><description><![CDATA[<p>Hi all,</p>
<p>I would like to have a slider, which I can set up to be in range, say, from 0 to 255, which will be integer. I used the vsl slider ( <a href="https://puredata.info/docs/developer/PdFileFormat#r364" rel="nofollow">https://puredata.info/docs/developer/PdFileFormat#r364</a> ), and that one produces float values, but I can have an <code>[int]</code> box after that, and I get integers - that is fine.</p>
<p>However, depending on the size of the slider, sometimes the finest motion I can do with the mouse, results in jumps of more than 1 count - and the <code>vsl</code> slider seems to not react on arrow key presses.</p>
<p>So, I would like to have the possibility to &quot;nudge&quot; or &quot;step&quot; the slider in a defined increment of 1, using the arrow keys; for instance, if you try this in HTML:</p>
<pre><code class="lang-html">&lt;input type=&quot;range&quot; id=&quot;my_slider&quot; name=&quot;my_slider&quot; min=&quot;0&quot; max=&quot;255&quot; step=&quot;1&quot; /&gt;
</code></pre>
<p>.... then the resulting slider can be selected with a click, and then one can press the Arrow Left/Right (or Up/Down) keys, and the slider will increment/decrement the current value for the step (here 1).</p>
<p>Is there anything like that - maybe an external - in PD?</p>
<p>Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys</guid><dc:creator><![CDATA[sdaau_ml]]></dc:creator><pubDate>Thu, 10 Dec 2020 08:55:48 GMT</pubDate></item><item><title><![CDATA[Reply to Slider that can be &quot;stepped&quot; with keyboard Arrow keys? on Thu, 10 Dec 2020 10:02:52 GMT]]></title><description><![CDATA[<p>If you hold the shift when sliding you get a finer adjustment</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/2</guid><dc:creator><![CDATA[Balwyn]]></dc:creator><pubDate>Thu, 10 Dec 2020 10:02:52 GMT</pubDate></item><item><title><![CDATA[Reply to Slider that can be &quot;stepped&quot; with keyboard Arrow keys? on Thu, 10 Dec 2020 11:57:03 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/sdaau_ml">@sdaau_ml</a> Here you have an example of what i think you want to do. It increments and decrements your slider using the numpad keys as left arrow (numpad key 4) and right arrow (numpad key 6). You can adjust the increment or decrement amount and the range.</p>
<p><img src="/uploads/files/1607601164166-damk.bmp" alt="damk.bmp" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/3</guid><dc:creator><![CDATA[Boran Robert]]></dc:creator><pubDate>Thu, 10 Dec 2020 11:57:03 GMT</pubDate></item><item><title><![CDATA[Reply to Slider that can be &quot;stepped&quot; with keyboard Arrow keys? on Thu, 10 Dec 2020 12:32:19 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/sdaau_ml">@sdaau_ml</a> It can always be done and <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ingox">@ingox</a> solution is easier and prettier......<br />
Here you go....... <a href="/uploads/files/1607601367006-whatever.zip">whatever.zip</a><br />
And <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/boran-robert">@Boran-Robert</a> is quicker than me because I gave you a selectable abstraction...... <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/smile.png" title="smile" alt=":smile:" /></p>
<p>Add arguments to set the slider range within the abstraction if you wish..... 0 254 or 1 10 or whatever.<br />
Give the slider a $0 receive address and loadbang the range into it from the arguments sending it a message [$0-this_slider range $1 $2(<br />
Then it will be more universal.<br />
To be totally universal you will need arguments for log/lin, size and the colours.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Thu, 10 Dec 2020 12:32:19 GMT</pubDate></item><item><title><![CDATA[Reply to Slider that can be &quot;stepped&quot; with keyboard Arrow keys? on Thu, 10 Dec 2020 11:58:55 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/smile.png" title="smile" alt=":smile:" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/5</guid><dc:creator><![CDATA[Boran Robert]]></dc:creator><pubDate>Thu, 10 Dec 2020 11:58:55 GMT</pubDate></item><item><title><![CDATA[Reply to Slider that can be &quot;stepped&quot; with keyboard Arrow keys? on Wed, 21 Apr 2021 22:24:12 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/sdaau_ml">@sdaau_ml</a> Since i was mentioned in the thread for no apparent reason, here is my take: <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" /></p>
<p><a href="/uploads/files/1607618269331-slidercontrol.pd">slidercontrol.pd</a></p>
<p><img src="/uploads/files/1607618253056-bildschirmfoto-vom-2020-12-10-17-36-38.png" alt="Bildschirmfoto vom 2020-12-10 17-36-38.png" class="img-responsive img-markdown" /></p>
<p>There seems to be some kind of bug: If you change the slider value by key (key up or key down) and click on the slider, it will jump down a little.</p>
<p>Edit: By removing the [int] after [unpack] it gets a little better... <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" /></p>
<p>Edit 2: Here is a fun version, where the slider can be changed by left and right buttons: <a href="/uploads/files/1619043691894-slidercontrol2.pd">slidercontrol2.pd</a>  <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/6</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Wed, 21 Apr 2021 22:24:12 GMT</pubDate></item><item><title><![CDATA[Reply to Slider that can be &quot;stepped&quot; with keyboard Arrow keys? on Sun, 13 Dec 2020 11:22:13 GMT]]></title><description><![CDATA[<p>Or you could hide a bang at each end of the slider to nudge the value and use the centre area of the slider to scroll ( there will be a dead zone for scrolling at each end where the bang takes the focus)<br />
<a href="/uploads/files/1607686471260-nudge-slider.pd">nudge-slider.pd</a><br />
<img src="/uploads/files/1607686487886-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
<p>Edit:<br />
Weirdly nudging to a lower value, steps 2, but changing the message [-1( to -0.5 fixes that</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13178/slider-that-can-be-stepped-with-keyboard-arrow-keys/7</guid><dc:creator><![CDATA[Balwyn]]></dc:creator><pubDate>Sun, 13 Dec 2020 11:22:13 GMT</pubDate></item></channel></rss>