[PD] [pd] sending lists via [comport]

hans w. koch hansw.koch at gmail.com
Wed Jan 29 00:00:11 CET 2020


if the incoming data all have the same structure (i.e. the strings of numbers have the same lenght),
you could group them in lists and then use unpack to sort their destinations.
like in the patch attached

hth
hans

-------------- next part --------------
A non-text attachment was scrubbed...
Name: grouplist.pd
Type: application/octet-stream
Size: 854 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20200129/7742ed3a/attachment-0001.obj>
-------------- next part --------------


> Am 28.01.2020 um 23:25 schrieb Dr. Maik Hester <maik.hester at gmx.de>:
> 
> Dear list,
> 
> does anyone know how to send the different values of each line from the
> sample below to [comport] as a list, strip this list in [pd] and route
> the values to their different destinations?
> 
> The data comes via Arduino from a pixy cam.
> 
> Here is a sample from Arduino's serial monitor:
> 
> Detected 6
>   block 0: sig: 2 x: 273 y: 36 width: 42 height: 5 index: 41 age: 18
>   block 1: sig: 1 x: 272 y: 187 width: 36 height: 4 index: 37 age: 18
>   block 2: sig: 1 x: 266 y: 151 width: 28 height: 4 index: 226 age: 71
>   block 3: sig: 1 x: 274 y: 109 width: 20 height: 4 index: 155 age: 124
>   block 4: sig: 2 x: 280 y: 48 width: 32 height: 2 index: 223 age: 72
>   block 5: sig: 1 x: 240 y: 136 width: 24 height: 2 index: 52 age: 5
> 
> At the moment [comport] receives all the numbers one after another (e.g.
> 2  273  36  42  5  41  18 ...), so that it is impossible for me to tell
> [pd] which number should go where.
> 
> I kept checking the internet for a solution for several days which did
> not bring me any further, so I hope that someone in the [pd] community
> could give me a clou.
> 
> Thanks
> Maik
> 
> 
> 
> 
> --
> __
> Dr. Maik Hester
> Musiker, Musikwissenschaftler, Akkordeon-Restaurator
> Himmelohstra├če 23
> D-58454 Witten
> 
> 
> 
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list