quick little hacks with PD and OSC

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)