<?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[Help explain a list from comport]]></title><description><![CDATA[<p>Hello, Years ago I got help for a project on the forum. Got the project working but never understood the patch. Can someone help explain the steps here, please.<br />
Data is being delivered via the comport as an x and y position. It looked something like 15x14y13x17y11x10 and on and on. I understand that asci code is being delivered across the serial connection from an arduino sketch and that 120 selects the x character but not really much else. Why porepend and not append for instance? Any help would be greatly appreciated. Thanks. JoeF.</p>
<p><a href="/uploads/files/1560040718975-how-serial-works-simple.pd">how-serial-works-simple.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 15:19:26 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/12099.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Jun 2019 00:38:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help explain a list from comport on Sun, 09 Jun 2019 00:38:43 GMT]]></title><description><![CDATA[<p>Hello, Years ago I got help for a project on the forum. Got the project working but never understood the patch. Can someone help explain the steps here, please.<br />
Data is being delivered via the comport as an x and y position. It looked something like 15x14y13x17y11x10 and on and on. I understand that asci code is being delivered across the serial connection from an arduino sketch and that 120 selects the x character but not really much else. Why porepend and not append for instance? Any help would be greatly appreciated. Thanks. JoeF.</p>
<p><a href="/uploads/files/1560040718975-how-serial-works-simple.pd">how-serial-works-simple.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport</guid><dc:creator><![CDATA[lulu_joe13]]></dc:creator><pubDate>Sun, 09 Jun 2019 00:38:43 GMT</pubDate></item><item><title><![CDATA[Reply to Help explain a list from comport on Sun, 09 Jun 2019 00:41:24 GMT]]></title><description><![CDATA[<p>Meant prepend. And, append. Doh!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport/2</guid><dc:creator><![CDATA[lulu_joe13]]></dc:creator><pubDate>Sun, 09 Jun 2019 00:41:24 GMT</pubDate></item><item><title><![CDATA[Reply to Help explain a list from comport on Sun, 09 Jun 2019 10:33:41 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lulu_joe13">@lulu_joe13</a> [list prepend] because the following [t l] is adding back the previously built list for each new data value......... BEFORE the current data value....... keeping the list in the original order as it is built up.<br />
Then the [list split 6] is chopping the messages into groups of 6 atoms.... resetting the spigot to re-start the process when &quot;120&quot; is received again.  As [list prepend] receives another &quot;120&quot; the previous list is overwritten and a new list starts building.<br />
6 atoms because x15y17 is......... 120 49 55 121 49 57 in ascii.<br />
Explanation......... <a href="/uploads/files/1560067748442-why.pd">why.pd</a></p>
<p>I suppose you could use [list append] and reverse interpret all the outlets of [unpack] but it seems easier to read in the current order, and the calculations that derive the x / y values post [unpack] might be harder to fathom with the right &gt; left ordering.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport/3</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sun, 09 Jun 2019 10:33:41 GMT</pubDate></item><item><title><![CDATA[Reply to Help explain a list from comport on Sun, 09 Jun 2019 12:07:07 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lulu_joe13">@lulu_joe13</a> If you're using Pd 0.48 or newer, have a look at [list store] which is very helpful for building lists.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport/4</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Sun, 09 Jun 2019 12:07:07 GMT</pubDate></item><item><title><![CDATA[Reply to Help explain a list from comport on Mon, 10 Jun 2019 16:15:02 GMT]]></title><description><![CDATA[<p>Thank-you so much for taking the time. Turning the spigot off baffled me until you explained it. Still confused on the multiport triggers? Thanks-again. JoeF.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport/5</guid><dc:creator><![CDATA[lulu_joe13]]></dc:creator><pubDate>Mon, 10 Jun 2019 16:15:02 GMT</pubDate></item><item><title><![CDATA[Reply to Help explain a list from comport on Mon, 10 Jun 2019 16:38:04 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lulu_joe13">@lulu_joe13</a> Unpack drops its values in order from right to left....... like everything else...... so if you want to do a calc based on the 3rd outlet it can only be done on data from the 4th onwards.<br />
Try to do it on data from the second outlet and you still have the data from the last set.<br />
You can reorder the data before the [unpack f f f f f f] with something like a [$6 $5 $1 $2 $3 $4( message that will reverse the last two atoms in a list (of 6 atoms) and put them before the rest.........<img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/smiley.png" title="smiley" alt=":smiley:" /><br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12099/help-explain-a-list-from-comport/6</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Mon, 10 Jun 2019 16:38:04 GMT</pubDate></item></channel></rss>