<div dir="ltr">Including list too<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 23, 2015 at 8:01 PM, ray Y <span dir="ltr"><<a href="mailto:raybuay@hotmail.com" target="_blank">raybuay@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif">
<p>the print object at the output of comport (for reference)</p>
<p><br>
</p>
<p>yeah, that was the first thing i tried but i don't know why it does not</p>
<p>work with the serial stream like it does with a normal list. i tried adding</p>
<p>commas between the values in the arduino sketch but no chance of</p>
<p>splitting the data into each atom in PD</p></div></div></blockquote><div>[comport] spits values one by one (actually bytes, so if a value is greater than one byte, it will be split, depending on the way you'll print it from the Arduino - Serial.print or Serial.write). you'll have to assemble them into a list (check help patch of [list] to see how to make a growing list), or make a counter and bang it on every output of [comport], pack the [comport] value with the counter value prepended and use [route].<br></div><div>I've made some abstractions to facilitate the communication between the Arduino and Pd, they'll might work for you. There're here <a href="https://github.com/alexdrymonitis/Arduino_Pd">https://github.com/alexdrymonitis/Arduino_Pd</a><br></div><div>The [serial_print] abstraction can use the comma as a value delimiter (if you're on Pd-extended, use [serial_print_extended] instead). <br></div></div><br></div></div>