<?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[Controling from the keyboard]]></title><description><![CDATA[<p>Hi,</p>
<p>I'm using he keyboard to control a robot in Pd, but i dont get how to use the keyname object.</p>
<p>I implemented this:</p>
<p>[keyup] [key]<br />
| |<br />
[0 ( [number\<br />
| /<br />
[route 119 100 115 97]<br />
| | | | |<br />
[up] [rigth] [back][stop]<br />
It worked just fine whit the WASD control. But when i try to use the arrows to control it does not work, for the arrows i implemented this:<br />
[keyup] [keyname]<br />
| |<br />
[0 ( [symbol\<br />
| /<br />
[route Up Down Rigth Left]<br />
| | | | |<br />
[up] [rigth] [left] [back][stop]<br />
BUt aparently the route is failing whit symbols, i'm, probably, using route in the wrong way, how should i do to route symbols?<br />
Thanks![/left]</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5158/controling-from-the-keyboard</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 23:17:18 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/5158.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 May 2011 12:19:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Controling from the keyboard on Mon, 16 May 2011 12:19:00 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>I'm using he keyboard to control a robot in Pd, but i dont get how to use the keyname object.</p>
<p>I implemented this:</p>
<p>[keyup] [key]<br />
| |<br />
[0 ( [number\<br />
| /<br />
[route 119 100 115 97]<br />
| | | | |<br />
[up] [rigth] [back][stop]<br />
It worked just fine whit the WASD control. But when i try to use the arrows to control it does not work, for the arrows i implemented this:<br />
[keyup] [keyname]<br />
| |<br />
[0 ( [symbol\<br />
| /<br />
[route Up Down Rigth Left]<br />
| | | | |<br />
[up] [rigth] [left] [back][stop]<br />
BUt aparently the route is failing whit symbols, i'm, probably, using route in the wrong way, how should i do to route symbols?<br />
Thanks![/left]</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5158/controling-from-the-keyboard</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5158/controling-from-the-keyboard</guid><dc:creator><![CDATA[felipefujioka]]></dc:creator><pubDate>Mon, 16 May 2011 12:19:00 GMT</pubDate></item><item><title><![CDATA[Reply to Controling from the keyboard on Mon, 16 May 2011 15:47:11 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Route can be used to route pairs of data to specific places.</p>
<p>From [keyname] you get two pieces of information. The key label and a up/down action, e.g:</p>
<p>Up 0<br />
Up 1</p>
<p>If you think about the first value being the receiver name and the second being the variable you want to pass with it. The [route] object will the output the variable associated with a receiver that matches its arguments. [route] will also strip off the receiver name so that you would be just left with the variable.</p>
<p>[keyname]<br />
| \</p>
<p>// create a list from keyname e.g. 'Up 1'<br />
|<br />
// route doesn't like lists so we strip off the list prefix<br />
|<br />
[route Up] // looks for a message with 'Up' in it and pass the next value to its outlet<br />
|<br />
[sel 1]<br />
|<br />
[O]</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5158/controling-from-the-keyboard/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5158/controling-from-the-keyboard/2</guid><dc:creator><![CDATA[Jwif]]></dc:creator><pubDate>Mon, 16 May 2011 15:47:11 GMT</pubDate></item></channel></rss>