Thanks everyone for the advice-- this is a big help. OSC ought to work
well, and I'm not sure how I missed the MAUI routines seeing as I use
MiniAudicle on Mac!
Andrew
On Wed, Jan 21, 2009 at 8:25 AM, Tom Lieber
OSC seems closer to a generic way of interchanging data, but it looks
2009/1/21 Andrew McPherson
: like I would have to spork a different thread for each parameter I want to receive (since they'd have different addresses), and that I can only receive one value per OSC event. If I wanted, say, to receive 3 floats as part of one message, is there a way to do that? Is there a way to read directly from a pipe to another process? I'm
thinking of a setup where an event is signaled when new data is available at the input. Any other thoughts on how to approach this task?
OSC is what you want to use. Like Gregory Brown said, you can check the ChucK examples directory for code that receives multiple values in one message. You can use that to get around the problem of waiting on multiple OSC messages (by encoding the type in the data instead of the name), although there's no way to wait on two different events like in the code in your P.S.
Thanks much, Andrew
P.S. Semi-related to the above: is there a way to wait on 2 events simultaneously? Thinking of something like these:
midiEvent || oscEvent => now; // wait for whichever comes first midiEvent || 200::ms => now; // wait with a timeout
-- Tom Lieber http://AllTom.com/ _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users