[PD] OSC packet-parsing?

Martin Peach martinrp at vax2.concordia.ca
Tue Mar 30 01:01:02 CEST 2004


David Merrill wrote:
> Hi everyone -
> What's the recommended way to parse OSC packets in pd? I have chunks of 
> 18 bytes that I want to send from another computer into PD, and OSC 
> seems like a natural way to do it. But I'm coming up against 2 problems:
> 
> - have to back them into integers, since OSC doesn't seem to have byte 
> as a datatype
> - how to parse a block of 18 integers once I have it in PD?

OSCroute or unpack?

The recommended way to transfer 18 bytes in OSC would be to prefix each 
with an identifying 'path' and use OSCroute to route them to their 
destinations.
Unpack might work for a list of 18 bytes sent to the same 'path', but I 
haven't tried it.

Martin






More information about the Pd-list mailing list