home changes contents help options

Here are some ideas on how to make OSC work better in PD.


comments:

decoupling OSC from transport --martinrp, Thu, 30 Mar 2006 23:36:17 +0200 reply
Decouping OSC from transport is not too hard, but it needs [netsend]? and [netreceive]? to be modified to not require the trailing semicolon, or else new [udpin]? and [udpout]?, [tcpin]? and [tcpout]?, analogous to [midiin]? and [midiout]?, that convert float lists to and from byte streams. It's fairly easy to change sendOSC to output a list of floats, and dumpOSC to receive lists of floats. Then objects [udpin]? and [udpout]?, [tcpin]? and [tcpout]?, analogous to [midiin]? and [midiout]?, based on the code for [netsend]? and [netreceive]? would send/receive the lists of floats (constrained to be integers on [0...255]?) as raw bytes. Martin

I think your idea of querying for child nodes could be better implemented as a pd patch, since the dumpOSC has no way of knowing what kind of tree it's in.

Also OSC is supposed to accept wild cards like *, I don't know if this works in pd.

generic net objects --hans, Fri, 31 Mar 2006 03:25:38 +0200 reply
Matju's proposal with [tcp]? and [stream]? objects, IIRC, seems like the way to go. TCP and UDP are bi-directional protocols, so the object should reflect that, like [netserver]?/[netclient]?, or [comport]?.