[PD] numberstream, parsing

Matthijs van Henten cola at looze.net
Sat Oct 15 19:36:53 CEST 2005


Hi list,

I built a little something on a pic, that sends data over rs232.
in pd, I can read that data using the [comport] object (great stuff!)
I'm reading a number of turn-knobs and so I output 5 numbers that have 
to be sorted.
by sending the stream as 'ascii'
( I send ascii corresponding number, including linefeed, carriage return 
etc. )
I can perfectly read the stuff in terminal programs, or by doing cat 
/dev/ttyS0

This is a bit hard in pd, I haven't figured out a way to do this 'elegantly'

anyone have some suggestions? preferably I would have something that 
would see it as 'ascii' ...?

this the idea:

[comport]
|
[parser]
|
[unpack 0 0 0 0 0 0 0 0]

it's gotta be trivial isn't it? some external somewhere?

bye!

Matthijs.





More information about the Pd-list mailing list