I am successfully using Csound to improvise experimental music, using OSCulator and the wiimote+nunchuk. Many thanks for providing this reliable tool! BTW, you are welcome to include my Csound code in your example-set if you like (although it is fairly complex.)
I would like to control the LEDs from csound but I haven't been able to figure the exact syntax of the OSC message I should be sending to OSCulator. I understand that most people don't use Csound, but I'd like to present you with an example of the code I've written (which does not work.) Perhaps you can tell me what's wrong with what I'm doing.
The standard command for sending from csound to OSC is:
OSCsend kwhen, ihost, iport, idestination, itype [, kdata1, kdata2, ...]
kwhen will be 0, meaning execute this command immediately
ihost will be an empty string, meaning the host is the same computer as is running csound
iport is the wiimote's port which is 8000 (the OSCUlator default)
idestination is a string designating the destination of the message. I think this should be "osculator/wiimote/1" but I'm not sure about this
itype is a string of letters that tell csound what datatypes to send in the parameters that follow, so if I want to send a string and then a floating point number, I would write "sf".
then there are parameters, which perhaps would be "led" followed by 15.0 (to set all the LEDs to ON)
So the entire command might be:
OSCsend 0, "", 8000, "osculator/wiimote/1", "sf", "led", 15.0
OR maybe it should be:
OSCsend 0, "", 8000, "osculator", "ssf", "wiimote/1", "led", 15.0
OR maybe it should be:
OSCsend 0, "", 8000, "osculator", "sfsf", "wiimote", 1.0, "led", 15.0
Or maybe it should be:
OSCsend 0, "", 8000, "osculator", "sisf", "wiimote", 1, "led", 15.0
OR maybe it should be:
OSCsend 0, "", 8000, "osculator/", "sisf", "wiimote/", 1, "/led/", 15.0
...OR....OR....
Any ideas? Is there any way I can see what message osculator is actually receiving, and what part of the message is correct?
best,
Lou Cohen
Comment