<?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[Anything as a creation argument]]></title><description><![CDATA[<p>Hi,</p>
<p>I am trying to make an abstraction with one creation argument which can be a number or a letter. For example [my_abs 5] or [my_abs d].</p>
<p>If I put [symbol $1] inside and put a number as an abstraction's creation argument, pd tells me that the object expects symbol. If I put [f $1] and put a symbol as an abstraction's creation argument, pd tells me that the object can't be created.</p>
<p>It would be nice to have [anything $1]...</p>
<p>What I am trying to do is kind of pc keyboard controlled switch, with the possibility to have both numeric and alphabetical key controls. [key] will be the easiest solution, since it outputs numbers only, but in that case, I will need to check which number corresponds with which key.</p>
<p>Any suggestions, please?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 13:46:25 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/6654.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Oct 2012 00:45:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anything as a creation argument on Mon, 01 Oct 2012 00:45:59 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>I am trying to make an abstraction with one creation argument which can be a number or a letter. For example [my_abs 5] or [my_abs d].</p>
<p>If I put [symbol $1] inside and put a number as an abstraction's creation argument, pd tells me that the object expects symbol. If I put [f $1] and put a symbol as an abstraction's creation argument, pd tells me that the object can't be created.</p>
<p>It would be nice to have [anything $1]...</p>
<p>What I am trying to do is kind of pc keyboard controlled switch, with the possibility to have both numeric and alphabetical key controls. [key] will be the easiest solution, since it outputs numbers only, but in that case, I will need to check which number corresponds with which key.</p>
<p>Any suggestions, please?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument</guid><dc:creator><![CDATA[sinewave]]></dc:creator><pubDate>Mon, 01 Oct 2012 00:45:59 GMT</pubDate></item><item><title><![CDATA[Reply to Anything as a creation argument on Mon, 01 Oct 2012 01:27:22 GMT]]></title><description><![CDATA[<p>what about</p>
<p>?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/2</guid><dc:creator><![CDATA[mod]]></dc:creator><pubDate>Mon, 01 Oct 2012 01:27:22 GMT</pubDate></item><item><title><![CDATA[Reply to Anything as a creation argument on Mon, 01 Oct 2012 21:30:25 GMT]]></title><description><![CDATA[<p>thanks mod for trying to help, but it is not what I am looking for. Will you, please, take a look into the patch? Maybe you'll get the idea what I want to do...</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/msw.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/msw.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/3</guid><dc:creator><![CDATA[sinewave]]></dc:creator><pubDate>Mon, 01 Oct 2012 21:30:25 GMT</pubDate></item><item><title><![CDATA[Reply to Anything as a creation argument on Mon, 01 Oct 2012 23:11:04 GMT]]></title><description><![CDATA[<p>[lister $1] does that</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/msw.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/msw.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/4</guid><dc:creator><![CDATA[Gromit]]></dc:creator><pubDate>Mon, 01 Oct 2012 23:11:04 GMT</pubDate></item><item><title><![CDATA[Reply to Anything as a creation argument on Tue, 02 Oct 2012 03:50:03 GMT]]></title><description><![CDATA[<p>i just looked up my old key abstraction. there's a simple workaround with makefilename.</p>
<p>also, looking at my abstraction again, you probably want to put a speedlimiter scetion in there, to stop rapid refiring when you hold a key down.</p>
<p>this patch has that bit too:</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/msw.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/msw.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/5</guid><dc:creator><![CDATA[mod]]></dc:creator><pubDate>Tue, 02 Oct 2012 03:50:03 GMT</pubDate></item><item><title><![CDATA[Reply to Anything as a creation argument on Tue, 02 Oct 2012 13:06:54 GMT]]></title><description><![CDATA[<p>Thanks Gromit and mod!</p>
<p>Both solutions are working...<br />
[lister] is what was missing in pd vocabulary.</p>
<blockquote>
<p>also, looking at my abstraction again, you probably want to put a speedlimiter scetion in there, to stop rapid refiring when you hold a key down.</p>
</blockquote>
<p>... I don't think I need speed limiter there. [change] will do the job.<br />
And your idea to put $1 inside a [sel] object is brilliant.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/6</guid><dc:creator><![CDATA[sinewave]]></dc:creator><pubDate>Tue, 02 Oct 2012 13:06:54 GMT</pubDate></item><item><title><![CDATA[Reply to Anything as a creation argument on Tue, 02 Oct 2012 21:28:42 GMT]]></title><description><![CDATA[<p>[lister] doesn't do anything that you can't do with the vanilla</p>
<p>objects. It says in the helpfile that it's deprecated, so there's no real reason to use it.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/7</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Tue, 02 Oct 2012 21:28:42 GMT</pubDate></item><item><title><![CDATA[Reply to Anything as a creation argument on Wed, 03 Oct 2012 03:04:58 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/sinewave">@sinewave</a> said:</p>
<blockquote>
<p>... I don't think I need speed limiter there. [change] will do the job.</p>
</blockquote>
<p>it depends how you have key repeat set up in your system preferences, but usually if you hold down a key, then after 500ms to 1sec it will rapidly fire key down/up messages. That's so, for example, when i hold down the 'q' key, i can get:</p>
<p>qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq</p>
<p>even with a [change] object, you'll still get key down/up messages alternating.</p>
<p>of course, if you have key repeat turned off in your OS, or if you're never going to hold a key down for more than half a second, it won't matter for you...but give it a go with holding your key down for a couple of seconds, and see what i mean.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/8</guid><dc:creator><![CDATA[mod]]></dc:creator><pubDate>Wed, 03 Oct 2012 03:04:58 GMT</pubDate></item><item><title><![CDATA[Reply to Anything as a creation argument on Wed, 03 Oct 2012 11:45:05 GMT]]></title><description><![CDATA[<p>thank you for your help:)</p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/mod">@mod</a> said:</p>
<blockquote>
<p>it depends how you have key repeat set up in your system preferences, but usually if you hold down a key, then after 500ms to 1sec it will rapidly fire key down/up messages. That's so, for example, when i hold down the 'q' key, i can get:</p>
<p>qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq</p>
<p>even with a [change] object, you'll still get key down/up messages alternating.</p>
<p>of course, if you have key repeat turned off in your OS, or if you're never going to hold a key down for more than half a second, it won't matter for you...but give it a go with holding your key down for a couple of seconds, and see what i mean.</p>
</blockquote>
<p>I am getting repeated 1's, not alternating 0's and 1's, and all that occurs before the [change] object. And yes, my aim was to build a switch whose output is 1 as long as I am holding the key pressed.</p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/maelstorm">@Maelstorm</a> said:</p>
<blockquote>
<p>[lister] doesn't do anything that you can't do with the vanilla</p>
<p>objects. It says in the helpfile that it's deprecated, so there's no real reason to use it.<br />
I tried , but it gets destroyed when you put a letter as a creation argument in my abstraction:<br />
list $1<br />
...couldn't create<br />
list k: unknown function</p>
<p>[lister] works ok, but I will adopt mod's solution (because I tend to keep all my abstractions and patches external independent. Actually, I think that [sel $1-key] was THE answer to my problem. That way, you always make sure that [sel] object is &quot;symbol oriented&quot;, so you never get an error message &quot;expected that, but got this&quot;. This is why I think it is a brilliant solution, so thank you mod, once again <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" />.</p>
</blockquote>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/9</guid><dc:creator><![CDATA[sinewave]]></dc:creator><pubDate>Wed, 03 Oct 2012 11:45:05 GMT</pubDate></item><item><title><![CDATA[Reply to Anything as a creation argument on Wed, 03 Oct 2012 13:34:25 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/sinewave">@sinewave</a> said:</p>
<blockquote>
<p>thank you for your help:)</p>
<p>I am getting repeated 1's, not alternating 0's and 1's,</p>
</blockquote>
<p>might be different depending on operating system then. i definitely get ones and zeroes on my osx macbook</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/10</guid><dc:creator><![CDATA[mod]]></dc:creator><pubDate>Wed, 03 Oct 2012 13:34:25 GMT</pubDate></item><item><title><![CDATA[Reply to Anything as a creation argument on Mon, 08 Oct 2012 17:32:30 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/sinewave">@sinewave</a> said:</p>
<blockquote>
<p>I tried</p>
<p>, but it gets destroyed when you put a letter as a creation argument in my abstraction:<br />
list $1<br />
...couldn't create<br />
list k: unknown function<br />
That's because the first argument of defines its functionality (i.e. , , etc.). By default, = , but if you just do it will try to change &quot;append&quot; to something else. In the example you gave, it's trying to make , but &quot;k&quot; isn't one of 's functions. So instead you have to do to make sure has a function and you still get your arguments.</p>
</blockquote>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/11</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Mon, 08 Oct 2012 17:32:30 GMT</pubDate></item><item><title><![CDATA[Reply to Anything as a creation argument on Mon, 08 Oct 2012 20:04:55 GMT]]></title><description><![CDATA[<p>Thanks Maelstorm,</p>
<p>your explanations is so clear and precise. I wish you wrote pd manual.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6654/anything-as-a-creation-argument/12</guid><dc:creator><![CDATA[sinewave]]></dc:creator><pubDate>Mon, 08 Oct 2012 20:04:55 GMT</pubDate></item></channel></rss>