<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">How about having your chuck program just read from a static, public variable (maybe of an array of numbers) and then have another program (called something like addInt.ck) that appends any integer arguments to the end of the array. That way, your python script could just spork "chuck + addInt.ck 60 64 67" and a C major triad (in midi keys) would be appended to the end of your array. The code for addInt.ck would be something like<div><br></div><div>for (int i; i < argc; i++) {</div><div>MyIntArray << argv[i];</div><div>}</div><div><br></div><div>Would this work for your purposes? You wouldn't have to deal with any timing issues. If you wanted to deal with duration in the python script, you can just use a multidimensional array. Also, this is assuming that you have chuck in --loop mode, which, let's be honest, is the only way to chuck.</div><div><br></div><div>Andrew</div><div><div><br><div><div>On Jun 1, 2010, at 8:41 PM, mike clemow wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Don't forget the idea that you can create sound-emitting responders to OSC messages which can be sent from your python program.  This further renders useless the "strong timing" of chuck, in a way...  but only where control or note events are concerned.  I've had much success with this method.<br>
<br>mike<br><br><div class="gmail_quote">On Tue, Jun 1, 2010 at 6:38 PM, Joe McMahon <span dir="ltr"><<a href="mailto:mcmahon@ibiblio.org">mcmahon@ibiblio.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I can also suggest, since the original program computing the notes is<br>
in Python, that another approach is to have the Python program<br>
actually write the whole ChucK program itself, and then execute it.<br>
<br>
If you don't have any real-time control or computing requirements this<br>
works perfectly.<br>
<div><div></div><div class="h5">_______________________________________________<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><br clear="all"><br>-- <br><a href="http://michaelclemow.com/">http://michaelclemow.com</a><br><a href="http://semiotech.org/">http://semiotech.org</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>https://lists.cs.princeton.edu/mailman/listinfo/chuck-users<br></blockquote></div><br></div></div></body></html>