<div dir="ltr"><div>I use this script, which allows scripts to register the durations they’re going to play for:</div><div><br></div>  <a href="http://pastie.org/8661565">http://pastie.org/8661565</a><br><div><br></div><div>

I don’t remember whether I found it or wrote it, but I’ve modified it!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 23, 2014 at 3:45 PM, Leonard Ritter <span dir="ltr"><<a href="mailto:leonard.ritter@duangle.com" target="_blank">leonard.ritter@duangle.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi there,<br>
<br>
I wrote this to Ge Wang on Twitter before but he's not been there<br>
since October, so I thought I'd better write here.<br>
<br>
I've used ChucK a few years ago and had quite some fun with it. I<br>
would like to use it as part of the game we are currently developing.<br>
The goal is to allow sounds to be customized to individual<br>
installations of the game, where they would then be played back by<br>
OpenAL to provide for positional 3D audio.<br>
<br>
As part of my prototyping, I wanted to write a simple Python script<br>
that is able to batch convert a stack of ck files to WAV, ideally<br>
sample precise (no leading or trailing silence).<br>
<br>
I thought that <a href="http://rec.ck" target="_blank">rec.ck</a> would be perfect for achieving that but it seems<br>
I can't figure out a way to have recording end precisely when the main<br>
script is done playing, instead of recording indefinitely and waiting<br>
for abortion via the Ctrl+C key.<br>
<br>
Is there such a method? I'd be very thankful for advice.<br>
<br>
Cheers,<br>
Leonard<br>
--<br>
Leonard und Sylvia Ritter, Duangle, GbR<br>
<br>
Ritter<br>
Altpieschen 9,<br>
01127 Dresden<br>
<br>
<a href="mailto:Leonard.Ritter@duangle.com">Leonard.Ritter@duangle.com</a><br>
<br>
<a href="http://www.duangle.com" target="_blank">www.duangle.com</a><br>
Geschäftsführung: Sylvia Ritter, Leonard Ritter<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" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Tom Lieber<br><a href="http://AllTom.com/" target="_blank">http://AllTom.com/</a><br><a href="http://infinite-sketchpad.com/" target="_blank">http://infinite-sketchpad.com/</a>
</div>