Hey Enrike: <br><br>It works! Thanks so much. <br><br>Althought when I killed the ChucK window by CTRL-C,<br>the python IDLE shell hung/crashed. <br><br>But this is great..I have almost everything I need for the <br>demo I&#39;m making. I would still like to read something 
<br>introductory on OSC that you mentioned. <br><br>What I&#39;ve found so far on the internet assumes I know <br>way too much else, except OSC itself. <br><br>cheers,<br>-------&nbsp;&nbsp;&nbsp;&nbsp;-.-<br>1/f&nbsp;&nbsp; )))&nbsp;&nbsp;--.<br>-------&nbsp;&nbsp;&nbsp;&nbsp;...
<br><a href="http://www.algomantra.com">http://www.algomantra.com</a><br><br><div><span class="gmail_quote">On 10/6/07, <b class="gmail_sendername">altern</b> &lt;<a href="mailto:altern2@gmail.com">altern2@gmail.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi<br><br>I have added a ChucK example to the SimpleOSC zip. Download it from<br>Python section at 
<a href="http://ixi-audio.net/backyard">http://ixi-audio.net/backyard</a> and run the<br>apptemplate.py together with the chuck example. They should talk each<br>other. If anyone sees anything wrong with it or want to improve the
<br>example please send it to the list and i will put it in the zip. I<br>havent done much ChucK for the last months so i am not sure it is right.<br><br>if you have any question just ask, we might have some introductory text
<br>for OSC that could help as well.<br><br>enrike<br><br>AlgoMantra(e)k dio:<br>&gt; thanks enrike, I&#39;ll appreciate that very much.<br>&gt;<br>&gt; Meanwhile I&#39;ve got the SimpleOSC module off IXI<br>&gt; and I&#39;m trying to understand it. In the links section...
<br>&gt; <a href="http://www.ixi-software.net/workshops/folly/links.html">http://www.ixi-software.net/workshops/folly/links.html</a><br>&gt; ....I found a few links are broken in category &quot;Python&quot;:<br>&gt;<br>&gt; eg&nbsp;&nbsp;-- &gt;
<br>&gt; <a href="http://user.cs.tu-berlin.de/%7Ekerstens/pub/">http://user.cs.tu-berlin.de/%7Ekerstens/pub/</a><br>&gt; &lt;<a href="http://user.cs.tu-berlin.de/%7Ekerstens/pub/">http://user.cs.tu-berlin.de/%7Ekerstens/pub/
</a>&gt;<br>&gt; (404 not found)<br>&gt; <a href="http://galatea.stetson.edu/%7EProctoLogic/">http://galatea.stetson.edu/%7EProctoLogic/</a><br>&gt; (goes to wiretap link, which times out....)<br>&gt;<br>&gt;<br>&gt;<br>&gt; -------&nbsp;&nbsp;&nbsp;&nbsp;-.-
<br>&gt; 1/f&nbsp;&nbsp; )))&nbsp;&nbsp;--.<br>&gt; -------&nbsp;&nbsp;&nbsp;&nbsp;...<br>&gt; <a href="http://www.algomantra.com">http://www.algomantra.com</a><br>&gt;<br>&gt; On 10/5/07, *altern* &lt;<a href="mailto:altern2@gmail.com">altern2@gmail.com</a> &lt;mailto:
<a href="mailto:altern2@gmail.com">altern2@gmail.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; i did exactly that last year, let me search my files and see if i find<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; the scripts ...<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; enrike<br>
&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; AlgoMantra(e)k dio:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; If anyone could give me some pointers here, I&#39;ll be grateful:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; I KNOW: Python (decent), Pygame (medium), ChucK (n00bie), OSC (null)
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; ZERO KNOWLEDGE: OSC ( I have NO idea what it is, except that<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; it may be useful for interfacing two platforms on the same computer.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; I know there is a Python wrapper available, but I have no idea
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; how to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; use it)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; I WANT: chucK to speak/listen to a python script in realtime.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; WHAT: The GUI is a game/visualisation in Pygame. It responds
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; visually to messages coming in from a Chuck audio set<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; ( is one of them a &quot;server&quot; type thingie?) and sends back<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; new messages which manipulate the sound. They way the
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; &#39;game&#39; is played visually modifies the music.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; To put the problem simply: ChucK &lt;&lt;--&gt;&gt;OSC&lt;&lt;--&gt;&gt;Python?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; =&gt; ??
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; -------&nbsp;&nbsp;&nbsp;&nbsp;-.-<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; 1/f&nbsp;&nbsp; )))&nbsp;&nbsp;--.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; -------&nbsp;&nbsp;&nbsp;&nbsp;...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; <a href="http://www.algomantra.com">
http://www.algomantra.com</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ------------------------------------------------------------------------<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; _______________________________________________
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; chuck-users mailing list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:chuck-users@lists.cs.princeton.edu">
chuck-users@lists.cs.princeton.edu</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; _______________________________________________
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; chuck-users mailing list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu
</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________
<br>&gt; chuck-users mailing list<br>&gt; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>&gt; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
</a><br><br><br><br><br>1 =&gt; int on;<br><br>// init OSC /////////////////////////////////////////<br>OscSend send; //send OSC<br>send.setHost( &quot;localhost&quot;, 9001);<br>OscRecv recv; //recv OSC<br>9000 =&gt; recv.port
;<br>recv.listen(); // start listening (launch thread)<br><br><br>// OSC classes and functions ////<br>class OscListener { // general listener template<br>&nbsp;&nbsp;&nbsp;&nbsp;OscEvent e;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;fun void action(){} //to be extended<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;fun void bind( string arg ){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;recv.event(arg) @=&gt; e; // bind event to address<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;spork ~ oscShred( ); // start listening to incomming osc<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br><br>&nbsp;&nbsp;&nbsp;&nbsp;fun void oscShred() {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while (on){
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e =&gt; now;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ( e.nextMsg()){ action(); }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&lt;&lt;&lt;&quot;exiting shred&quot;, me&gt;&gt;&gt;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//machine.remove( s.id() );
<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>}<br>/////////////////////////////////////////<br><br>// Listeners<br>class Listener1 extends OscListener{<br>&nbsp;&nbsp;&nbsp;&nbsp;fun void action(){ &lt;&lt;&lt;&quot;chuck: listener1&quot;, e.getInt()&gt;&gt;&gt;; }<br>}<br>
<br><br>// create instance and bind address<br>Listener1 lis1;<br>lis1.bind( &quot;/test, i&quot; );<br><br><br><br>&lt;&lt;&lt;&quot;chuck osc receiver up and runing ...&quot;&gt;&gt;&gt;;<br><br>//entering main loop //<br>
while (on){ // quits when on is false<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;send.startMsg( &quot;/test&quot;, &quot;i&quot; );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 =&gt; send.addInt; // send connected message to graphics<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.2::second =&gt; now;<br>}<br><br>&lt;&lt;&lt;&quot;quiting ChucK&quot;&gt;&gt;&gt;; //print quit
<br><br><br>_______________________________________________<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">
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br><br>