Hi Chuck people Thanks for this latest release of ChucK! It looks promising. I've been testing it for an hour or so and I am very impresssed. Here are some tests I did for fun: // A SuperCollider patch that sends OSC messages to ChucK: // it uses the OSC_recv.ck program that's in the examples. n = NetAddr("127.0.0.1", 6449); // chuck listens here t = Task({ 16.do({ n.sendMsg("/sndbuf/buf/rate", rrand(0.8, 1.2)); 0.5.wait; }); }); t.start t.stop // here is another test: Run this in SuperCollider (and cd to your ChucK examples folder): "cd /Applications/ChucK/examples/; chuck otf_01.ck".unixCmd; "cd /Applications/ChucK/examples/; chuck otf_02.ck".unixCmd; "cd /Applications/ChucK/examples/; chuck otf_03.ck".unixCmd; It all starts as expected. However I'd like to get the PID returned so I could kill the (chuck) process when I like. Does anybody know how (or if) one can get the PID returned when you start a process in Unix? At the moment I can go to "top" and kill all chuck processes, but I cannot be sure if I am killing the base drum or the snare : ( It would be nice to be able to start ChucK programs from SC and control them through OSC and then stop them (from SC) when one wants. (I can do all of that now, except for the last bit) In the examples above (otf_01, otf_02 and otf_03).... is it possible to start them so they all run in sync? If I start them all from different terminal windows I get this error message: thm:/Applications/ChucK/examples thm$ chuck otf_04.ck [chuck]: cannot bind to tcp port 8888... Am I doing something wrong? Should I not be starting up those different programs in new terminal windows? How could I sync them? (I should RTFM but I am a bit busy right now) ChucK rocks! thor
Hi Thor and all!
Thanks for this latest release of ChucK! It looks promising. I've been testing it for an hour or so and I am very impresssed.
Oh good, I guess that means you haven't hit the really explosive bugs yet... (and thanks - it is really encouraging as well!)
Here are some tests I did for fun:
Nice (thanks again)! Also, I am going to redirect this thread to chuck-users after this email for continued coverage.
Run this in SuperCollider (and cd to your ChucK examples folder):
"cd /Applications/ChucK/examples/; chuck otf_01.ck".unixCmd; "cd /Applications/ChucK/examples/; chuck otf_02.ck".unixCmd; "cd /Applications/ChucK/examples/; chuck otf_03.ck".unixCmd;
If you want them synchronized, it would be better to run them in the same ChucK virtual machine, adding them one by one on-the-fly. Try:
"cd /Applications/ChucK/examples/; chuck --loop".unixCmd; "cd /Applications/ChucK/examples/; chuck + otf_01.ck".unixCmd; "cd /Applications/ChucK/examples/; chuck + otf_02.ck".unixCmd; "cd /Applications/ChucK/examples/; chuck + otf_03.ck".unixCmd;
This will synchronize them (since the otf programs know to synchronize with each other). Some basic command line usage: http://chuck.cs.princeton.edu/doc/program/otfp.html
thm:/Applications/ChucK/examples thm$ chuck otf_04.ck [chuck]: cannot bind to tcp port 8888...
This happens when two or more chuck VM starts up on the same port. The above change also addresses this. Thanks again! "Keep on Chuckin'" Ge! ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/
participants (2)
-
Ge Wang
-
thor