OSC GUI Control.

182 views
Skip to first unread message

Brooke

unread,
Oct 8, 2012, 11:42:53 PM10/8/12
to wekinat...@googlegroups.com
Hi All,

I'm trying to implement Osc Gui Control from Processing for an installation and hitting a few snags. The messages are being received by wekinator on port 6453 and showing up in the console and some such as "startSound"/"stopSound" sound are working!

However I can't get 'Begin Recording examples into dataset' to trigger properly yet. I'm sending the message in the format (/control "extract" 0)

The console is responding with: 
"Chuck: Control Message Received": String
 S i extract 0

But the process isn't starting. Is there something I'm missing? Another message that needs sending?

Lastly thanks for wekinator, really amazing software!!

Best
brooke
 

Brooke Mitchell

unread,
Oct 9, 2012, 8:13:30 AM10/9/12
to wekinat...@googlegroups.com
Ok after looking at the source I see it's very likely that I'm doing
this all wrong. I'll try sending /control messages to 6448 for
starters.

Rebecca Fiebrink

unread,
Oct 9, 2012, 7:13:57 PM10/9/12
to wekinat...@googlegroups.com
Hi Brooke,

Glad you are figuring things out. Sorry the OSC GUI control is not as well documented as I'd like! But it does work.

Yes, you will want to send to port 6448, not 6453, for controlling the Wekinator program itself. (The ChucK component is listening on port 6453, so if you're using ChucK for synthesis, then the startSound and stopSound commands you were using before will have an effect, but it's better to use the start/stop running commands below).

Also, the messages have a slightly different syntax than what you had in your original email. Perhaps you saw this already since you dug through the code (brave soul! -- it's in OscController.java), but in case you haven't gotten there yet, here is some more info on the commands:

- start and stop recording of new examples (using the /control/OSCrecord" message, which includes 1 integer equal to 1 to start recording and 0 to stop)
- start and stop playback of a playalong score (using the /control/OSCplayscore" message, with an int that is 1 to start playback and 0 to stop) (you probably won't need this)
- trigger training (or retraining) of all models on the current training data (/control/OSCtrain)
- start/stop running of Wekinator trained models (/control/OSCstartrun, with int that is 1 for start and 0 for stop)

Good luck, and give a shout if you run into any more problems!

Best,
Rebecca

Rebecca Fiebrink
Assistant Professor of Computer Science (also Music)
Princeton University
www.cs.princeton.edu/~fiebrink/

Brooke Mitchell

unread,
Oct 9, 2012, 8:34:47 PM10/9/12
to wekinat...@googlegroups.com
Fantastic my OSC interface is working!

It was the integer messages I was missing.

This is a huge relief many thanks.

Rebecca Fiebrink

unread,
Oct 10, 2012, 1:23:33 PM10/10/12
to wekinat...@googlegroups.com
Great! If you end up having some video or other information about your installation online, please share when you can!

Brooke Mitchell

unread,
Oct 10, 2012, 7:36:06 PM10/10/12
to wekinat...@googlegroups.com
No problem I'll be making some video and documentation, will upload next week.
Reply all
Reply to author
Forward
0 new messages