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'm making. I would still like to read something
<br>introductory on OSC that you mentioned. <br><br>What I've found so far on the internet assumes I know <br>way too much else, except OSC itself. <br><br>cheers,<br>------- -.-<br>1/f ))) --.<br>------- ...
<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> <<a href="mailto:altern2@gmail.com">altern2@gmail.com</a>> 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>> thanks enrike, I'll appreciate that very much.<br>><br>> Meanwhile I've got the SimpleOSC module off IXI<br>> and I'm trying to understand it. In the links section...
<br>> <a href="http://www.ixi-software.net/workshops/folly/links.html">http://www.ixi-software.net/workshops/folly/links.html</a><br>> ....I found a few links are broken in category "Python":<br>><br>> eg -- >
<br>> <a href="http://user.cs.tu-berlin.de/%7Ekerstens/pub/">http://user.cs.tu-berlin.de/%7Ekerstens/pub/</a><br>> <<a href="http://user.cs.tu-berlin.de/%7Ekerstens/pub/">http://user.cs.tu-berlin.de/%7Ekerstens/pub/
</a>><br>> (404 not found)<br>> <a href="http://galatea.stetson.edu/%7EProctoLogic/">http://galatea.stetson.edu/%7EProctoLogic/</a><br>> (goes to wiretap link, which times out....)<br>><br>><br>><br>> ------- -.-
<br>> 1/f ))) --.<br>> ------- ...<br>> <a href="http://www.algomantra.com">http://www.algomantra.com</a><br>><br>> On 10/5/07, *altern* <<a href="mailto:altern2@gmail.com">altern2@gmail.com</a> <mailto:
<a href="mailto:altern2@gmail.com">altern2@gmail.com</a>>> wrote:<br>><br>> i did exactly that last year, let me search my files and see if i find<br>> the scripts ...<br>><br>> enrike<br>
><br>> AlgoMantra(e)k dio:<br>> > If anyone could give me some pointers here, I'll be grateful:<br>> ><br>> > I KNOW: Python (decent), Pygame (medium), ChucK (n00bie), OSC (null)
<br>> ><br>> > ZERO KNOWLEDGE: OSC ( I have NO idea what it is, except that<br>> > it may be useful for interfacing two platforms on the same computer.<br>> > I know there is a Python wrapper available, but I have no idea
<br>> how to<br>> > use it)<br>> ><br>> > I WANT: chucK to speak/listen to a python script in realtime.<br>> ><br>> > WHAT: The GUI is a game/visualisation in Pygame. It responds
<br>> > visually to messages coming in from a Chuck audio set<br>> > ( is one of them a "server" type thingie?) and sends back<br>> > new messages which manipulate the sound. They way the
<br>> > 'game' is played visually modifies the music.<br>> ><br>> > To put the problem simply: ChucK <<-->>OSC<<-->>Python?<br>> ><br>> > => ??
<br>> ><br>> ><br>> ><br>> ><br>> ><br>> > ------- -.-<br>> > 1/f ))) --.<br>> > ------- ...<br>> > <a href="http://www.algomantra.com">
http://www.algomantra.com</a><br>> ><br>> ><br>> ><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>> <mailto:<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>> _______________________________________________
<br>> chuck-users mailing list<br>> <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>> <mailto:<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>> <<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>> --<br>><br>><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><br><br><br>1 => int on;<br><br>// init OSC /////////////////////////////////////////<br>OscSend send; //send OSC<br>send.setHost( "localhost", 9001);<br>OscRecv recv; //recv OSC<br>9000 => recv.port
;<br>recv.listen(); // start listening (launch thread)<br><br><br>// OSC classes and functions ////<br>class OscListener { // general listener template<br> OscEvent e;<br><br> fun void action(){} //to be extended<br>
<br> fun void bind( string arg ){<br> recv.event(arg) @=> e; // bind event to address<br> spork ~ oscShred( ); // start listening to incomming osc<br> }<br><br> fun void oscShred() {<br> while (on){
<br> e => now;<br> if ( e.nextMsg()){ action(); }<br> }<br> //<<<"exiting shred", me>>>;<br> //machine.remove( s.id() );
<br> }<br>}<br>/////////////////////////////////////////<br><br>// Listeners<br>class Listener1 extends OscListener{<br> fun void action(){ <<<"chuck: listener1", e.getInt()>>>; }<br>}<br>
<br><br>// create instance and bind address<br>Listener1 lis1;<br>lis1.bind( "/test, i" );<br><br><br><br><<<"chuck osc receiver up and runing ...">>>;<br><br>//entering main loop //<br>
while (on){ // quits when on is false<br> send.startMsg( "/test", "i" );<br> 1 => send.addInt; // send connected message to graphics<br> 0.2::second => now;<br>}<br><br><<<"quiting ChucK">>>; //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>