<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><DIV>hi, i just noticed this part of your email. i actually don't regard this as a bug, though i may be able to be convinced otherwise. a very slight modification to your code works fine:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>&gt;&gt;&gt;</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; ">Rhodey<FONT class="Apple-style-span" color="#006312"> </FONT>r<FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT>LiSa<FONT class="Apple-style-span" color="#006312"> </FONT>l<FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT><FONT class="Apple-style-span" color="#0000FF">dac</FONT>;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><FONT class="Apple-style-span" color="#006312"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; "><FONT class="Apple-style-span" color="#0000FF">second</FONT><FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT>l.duration;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><FONT class="Apple-style-span" color="#006312"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; "><FONT class="Apple-style-span" color="#D48010">1</FONT><FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT>l.record;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; "><FONT class="Apple-style-span" color="#D48010">1</FONT><FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT>r.noteOn;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><FONT class="Apple-style-span" color="#006312"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; "><FONT class="Apple-style-span" color="#0000FF">second</FONT><FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT><FONT class="Apple-style-span" color="#0000FF">now</FONT>;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><FONT class="Apple-style-span" color="#006312"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; "><FONT class="Apple-style-span" color="#D48010">0</FONT><FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT>l.record;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><FONT class="Apple-style-span" color="#006312"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; "><FONT class="Apple-style-span" color="#D48010">0</FONT><FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT>l.loop;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; "><FONT class="Apple-style-span" color="#0000FF">second </FONT>-<FONT class="Apple-style-span" color="#0000FF"> </FONT><FONT class="Apple-style-span" color="#D48010">1</FONT>::<FONT class="Apple-style-span" color="#0000FF">samp</FONT><FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT>l.playPos;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; ">-<FONT class="Apple-style-span" color="#D48010">1</FONT><FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT>l.rate;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; "><FONT class="Apple-style-span" color="#D48010">1</FONT><FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT>l.play;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><FONT class="Apple-style-span" color="#006312"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; "><FONT class="Apple-style-span" color="#0000FF">second</FONT><FONT class="Apple-style-span" color="#006312"> </FONT>=&gt;<FONT class="Apple-style-span" color="#006312"> </FONT><FONT class="Apple-style-span" color="#0000FF">now</FONT>;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; "><BR class="khtml-block-placeholder"></DIV><DIV>&gt;&gt;&gt;</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>i can understand that this might seem awkward, and i'll look at the source code to see if there might be a good way to change this that isn't too painful. in any case, you should be able to get consistent behavior with this work around.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>duration read and voiceGain is just about done, and should make it in to the next version, at least!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>dan</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I have a slight issue with LiSa when she's supposed to play<SPAN class="Apple-converted-space"> </SPAN></DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">backwards.&gt; Let's assume for a second we want to record a single<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">piano note, then play</DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">it back *once* in reverse;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">----------------------</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Rhodey r =&gt; LiSa l =&gt; dac;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">second =&gt; l.duration;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1 =&gt; l.record;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1 =&gt; r.noteOn;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">second =&gt; now;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">0 =&gt; l.record;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">0 =&gt; l.loop;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">second =&gt; l.playPos;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-1 =&gt; l.rate;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1 =&gt; l.play;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">second =&gt; now;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">---------------</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The above looks entirely correct to me, however, it won't<SPAN class="Apple-converted-space"> </SPAN></DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">generate a</DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sound. for</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">.999::second =&gt; l.playPos;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">it will work just fine and it will also work fine when .loop is<SPAN class="Apple-converted-space"> </SPAN></DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">turned on</DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">but turning loop on for one-shot samples isn't always convenient.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I believe this to be a bug, probably related to the way in which<SPAN class="Apple-converted-space"> </SPAN></DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">LiSa&gt; determines when she is supposed to stop playing. When you,<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Dan, have a</DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">moment, could you please look into this?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Yours,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Kas.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">chuck-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>