Thanks everyone for the advice-- this is a big help. &nbsp;OSC ought to work well, and I&#39;m not sure how I missed the MAUI routines seeing as I use MiniAudicle on Mac!<div><br></div><div>Andrew<br><br><div class="gmail_quote">
On Wed, Jan 21, 2009 at 8:25 AM, Tom Lieber <span dir="ltr">&lt;<a href="mailto:lieber@princeton.edu">lieber@princeton.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2009/1/21 Andrew McPherson &lt;<a href="mailto:apm@alum.mit.edu">apm@alum.mit.edu</a>&gt;:<br>
<div class="Ih2E3d">&gt; OSC seems closer to a generic way of interchanging data, but it looks like I would have to spork a different thread for each parameter I want to receive (since they&#39;d have different addresses), and that I can only receive one value per OSC event. &nbsp;If I wanted, say, to receive 3 floats as part of one message, is there a way to do that?<br>

&gt;<br>
&gt; Is there a way to read directly from a pipe to another process? &nbsp;I&#39;m thinking of a setup where an event is signaled when new data is available at the input. &nbsp;Any other thoughts on how to approach this task?<br>
<br>
</div>OSC is what you want to use. Like Gregory Brown said, you can check<br>
the ChucK examples directory for code that receives multiple values in<br>
one message. You can use that to get around the problem of waiting on<br>
multiple OSC messages (by encoding the type in the data instead of the<br>
name), although there&#39;s no way to wait on two different events like in<br>
the code in your P.S.<br>
<div class="Ih2E3d"><br>
&gt; Thanks much,<br>
&gt; Andrew<br>
&gt;<br>
&gt; P.S. Semi-related to the above: is there a way to wait on 2 events simultaneously? &nbsp;Thinking of something like these:<br>
&gt;<br>
&gt; midiEvent || oscEvent =&gt; now; // wait for whichever comes first<br>
&gt; midiEvent || 200::ms =&gt; now; // wait with a timeout<br>
<br>
</div><font color="#888888">--<br>
Tom Lieber<br>
<a href="http://AllTom.com/" target="_blank">http://AllTom.com/</a><br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</div></div></blockquote></div><br></div>