2008/11/9 dan trueman <span dir="ltr">&lt;<a href="mailto:dtrueman@princeton.edu">dtrueman@princeton.edu</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
ok, i think i&#39;ve figured this out. it&#39;s because of function overloading. when you call rate(1), it RETURNS the rate for voice 1. when you call rate(1.), it SETS the rate for voice 0 to 1. this is specified in the online doc (but i&#39;d forgotten about it):<br>

</blockquote><div><br>Ok, that makes sense but this must&#39;ve changed in the last version of ChucK because previously my code did work as I intended it. I think it&#39;s a good change, BTW, it solves that question quite nicely, I like it.<br>
<br>You know I&#39;m a big fan of your work on LiSa but I&#39;d still like to say I&#39;d appreciate it if changes like this could go in the VERSIONS text that keeps track of changes. I feel bad to critique while you spend so much hard work on LiSa but this was a bit confusing.<br>
<br>Right, on to the future. In the same session I wondered whether it would be possible to detect whether a specific voice was playing. I don&#39;t think we can right now. Maybe the command to make a voice play should also be a float and if it&#39;s non-zero start playback while also using the value to set .voiceGain()? that way we could use .play(int voice) to get a 0 or 1 to indicate whether the voice is currently playing.<br>
<br>Oh... and the bi directional looping is another one that takes a int for it&#39;s parameter. I&#39;m not sure what to do there.<br></div></div><br>Yours,<br>Kas.<br>