<?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[How to control sliders or grid objects by holding down keys?]]></title><description><![CDATA[<p>I have a grid controlling two sliders which control the cutoff frequency and resonance of a filter i have made. I also want to be able to turn the cutoff frequency up and down by holding down z and x and change the resonance using . and ;.</p>
<p>So far I have used the key and select objects and made it so that when you press the desired key it adds or takes away the respective value for the slider.</p>
<p>The problem with this is that it only moves one increment when you touch the key and doesn't output the same message when you hit the key again, so you cant get around the problem by tapping the key alot.</p>
<p>What I am looking for is an object that continuously outputs its received data when a key is pressed and stops outputting the data when the key is released.</p>
<p>Does anyone know of one that exists?</p>
<p>Thanks in advance for your help!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 10:47:19 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/1718.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 May 2008 16:56:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to control sliders or grid objects by holding down keys? on Fri, 16 May 2008 16:56:22 GMT]]></title><description><![CDATA[<p>I have a grid controlling two sliders which control the cutoff frequency and resonance of a filter i have made. I also want to be able to turn the cutoff frequency up and down by holding down z and x and change the resonance using . and ;.</p>
<p>So far I have used the key and select objects and made it so that when you press the desired key it adds or takes away the respective value for the slider.</p>
<p>The problem with this is that it only moves one increment when you touch the key and doesn't output the same message when you hit the key again, so you cant get around the problem by tapping the key alot.</p>
<p>What I am looking for is an object that continuously outputs its received data when a key is pressed and stops outputting the data when the key is released.</p>
<p>Does anyone know of one that exists?</p>
<p>Thanks in advance for your help!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys</guid><dc:creator><![CDATA[benq]]></dc:creator><pubDate>Fri, 16 May 2008 16:56:22 GMT</pubDate></item><item><title><![CDATA[Reply to How to control sliders or grid objects by holding down keys? on Fri, 16 May 2008 23:46:27 GMT]]></title><description><![CDATA[<p>I looked at something like that briefly, and it seems that you'd have to first get your OS to turn off the key repeat so you don't receive a bunch of rapid keydown-keyups if you hold it down.</p>
<p>Other than that, you should be able to do that through some fairly simple programming - just make an abstraction that will keep track of and increment the slider's value when it receives a bang, make another abstraction that outputs bangs when it sees you've pressed a certain key and stops when you release it, and wire them together.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/2</guid><dc:creator><![CDATA[myoozik]]></dc:creator><pubDate>Fri, 16 May 2008 23:46:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to control sliders or grid objects by holding down keys? on Sat, 17 May 2008 08:58:36 GMT]]></title><description><![CDATA[<p>First of all thanks for that mate!</p>
<p>That makes perfect sense except that when i hold down a key it doesnt send out a rapid bunch of key-downs and key ups.</p>
<p>It only sends out the number attached to the key object when i press the key once, and doesnt send out a stream when i old it down.</p>
<p>If i can make it send out a stream of key down I can make it change the slider for every keydown value and to stop moving it when it receives the key up.</p>
<p>So how do i change my OS so that in pd when i attach the key object it continally outputs the number of the key i am holding down?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/3</guid><dc:creator><![CDATA[benq]]></dc:creator><pubDate>Sat, 17 May 2008 08:58:36 GMT</pubDate></item><item><title><![CDATA[Reply to How to control sliders or grid objects by holding down keys? on Sat, 17 May 2008 12:33:44 GMT]]></title><description><![CDATA[<p>check out [keyname], [key], and [keyup] if you haven't already, what do these give you for outputs?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/4</guid><dc:creator><![CDATA[slvmchn]]></dc:creator><pubDate>Sat, 17 May 2008 12:33:44 GMT</pubDate></item><item><title><![CDATA[Reply to How to control sliders or grid objects by holding down keys? on Sat, 17 May 2008 14:21:56 GMT]]></title><description><![CDATA[<p>yeah as slvmchn says, you need to get both the key down and key up strokes.</p>
<p>i think [key] and [keyup] is the easiest way.</p>
<p>so.. what you do, using key 113 (q) as an example, is this:</p>
<p>[key 113]<br />
|<br />
[1 (<br />
|<br />
[metro 50]</p>
<p>and then, into the same metro:</p>
<p>[keyup 113]<br />
|<br />
[0 (</p>
<p>the speed of your metro is the speed at which bangs are output.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/5</guid><dc:creator><![CDATA[hardoff]]></dc:creator><pubDate>Sat, 17 May 2008 14:21:56 GMT</pubDate></item><item><title><![CDATA[Reply to How to control sliders or grid objects by holding down keys? on Sat, 17 May 2008 21:58:46 GMT]]></title><description><![CDATA[<p>Works now thankyou very much! had to use the select object but works perfectly now!</p>
<p>My next problem is how to modulate my cutoff frequency with an lfo?</p>
<p>An osc~ outputs signal and i dont know how to get that to modulate a control value, anyone know?</p>
<p>Thanks in advance!!!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/6</guid><dc:creator><![CDATA[benq]]></dc:creator><pubDate>Sat, 17 May 2008 21:58:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to control sliders or grid objects by holding down keys? on Sat, 17 May 2008 22:38:04 GMT]]></title><description><![CDATA[<p>[osc~] [metro]<br />
| |<br />
[snapshot~]<br />
|<br />
[$1 10(<br />
|<br />
[line]<br />
|<br />
[expr a * $f1 + b] (to scale to the right range)<br />
\<br />
[lop~]</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/7</guid><dc:creator><![CDATA[myoozik]]></dc:creator><pubDate>Sat, 17 May 2008 22:38:04 GMT</pubDate></item><item><title><![CDATA[Reply to How to control sliders or grid objects by holding down keys? on Sun, 18 May 2008 01:21:23 GMT]]></title><description><![CDATA[<p>I completely understand the first bit but wat happens in the expr a*.. box, that doesnt make sense to me!</p>
<p>Sorry for being dumb and new to puredata but if i know what that means i will be so happy! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>and why do you put $1 10 in the message box?</p>
<p>Sorry, if you explain it to me like im a complete dunce i will probably understand!</p>
<p>Thanks again</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/8</guid><dc:creator><![CDATA[benq]]></dc:creator><pubDate>Sun, 18 May 2008 01:21:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to control sliders or grid objects by holding down keys? on Sun, 18 May 2008 02:10:26 GMT]]></title><description><![CDATA[<p>expr evaluates a mathematical expression. $f1, $f2, ..., refer to the values coming in on the expr's inlets. You should substitute appropriate values so for a and b so you get the values you want instead of the 0 through 1 coming out of the osc~.</p>
<p>The [$1 10( going into the [line] is so that the values will ramp smoothly, since snapshot~ will only give you values as often as the metronome ticks and will therefore be a little jumpy. Actually, instead of [$1 10( you should put [$1 <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/rage.png" title="x(" alt="x(" /> where x is the same number you used for the metronome's creation argument.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/9</guid><dc:creator><![CDATA[myoozik]]></dc:creator><pubDate>Sun, 18 May 2008 02:10:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to control sliders or grid objects by holding down keys? on Sun, 18 May 2008 18:38:46 GMT]]></title><description><![CDATA[<p>I managed to get it working by rescaling the 0 and 1 that the osc~ outputs and used the mtof object to convert this into a cutoff frequency.</p>
<p>The problem with this is that it is not 100% accurate for what I am trying to do.</p>
<p>I want to have maximum cutoff at 10k for the hi pass but obviously not the low pass because that would make it impossible to leave the signal unaffected.</p>
<p>I need to know the best way of logarithmically scaling the cutoff frequency, basically i need an equation to scale 0-1 to 20-20000 logaritmeically.</p>
<p>any ideas?</p>
<p>Thanks alot by the way this has really helped!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/1718/how-to-control-sliders-or-grid-objects-by-holding-down-keys/10</guid><dc:creator><![CDATA[benq]]></dc:creator><pubDate>Sun, 18 May 2008 18:38:46 GMT</pubDate></item></channel></rss>