April 21, 2009

quick little hacks with PD and OSC

Filed under: Uncategorized — aturley @ 8:53 pm
a little PD and OSC hack

a little PD and OSC hack

This is a little PD hack that lets you set a value using an OSC message. The OSC message comes in on port 5678, and has the following form:

/cmd [receiver] [value]

where “[receiver]” is the name of the receiver, and “[value]” is the new value. The unpack and repack are necessary to convert the first argument into a symbol.

If you have Python and the simpleosc library, you can set the value connected to “jesus” to 10 like this:

>>> import osc
>>> osc.init()
>>> osc.sendMsg("/cmd", ["jesus", 10], “127.0.0.1″, 5678)

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress

On this site: