<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Gasten,<div><br class="webkit-block-placeholder"></div><div>I've discovered that there's no sound if the .freq call is made before a sample is read. If you read and call .freq afterwards it's fine. So my problem's solved, though I'd like to request that ChucK prints error or warning messages in situations like this.</div><div><br class="webkit-block-placeholder"></div><div>Best wishes,</div><div><br class="webkit-block-placeholder"></div><div>Ollie</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><div>SndBuf buffer =&gt; dac;</div><div>buffer.loop(1);</div><div>"FunkDmin_1.wav" =&gt; buffer.read; // comment this and uncomment the other line to see this happen</div><div>buffer.freq(0.4);</div><div>//"FunkDmin_1.wav" =&gt; buffer.read;</div><div>0 =&gt; buffer.pos;</div><div><br class="webkit-block-placeholder"></div><div>&lt;&lt;&lt; " ok " &gt;&gt;&gt;;</div><div><br class="webkit-block-placeholder"></div><div>while(true) {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>0.5::second =&gt; now;</div><div>}</div></div><div><br><div><div>On 26 Jan 2008, at 17:00, <a href="mailto:chuck-users-request@lists.cs.princeton.edu">chuck-users-request@lists.cs.princeton.edu</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">fre 2008-01-25 klockan 16:15 +0000 skrev Ollie Glass:</font></p> <blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Hello ChucKers,</font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">I'm using SndBuf to loop samples. I read a sample and call .loop(1) <span class="Apple-converted-space"> </span></font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">to do this, but if I call .freq(x) nothing plays, where 0.25 &lt; x &lt; 4.</font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Is this an issue with SndBuf or am I missing something?</font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Thanks,</font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Ollie</font></p> </blockquote><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Could you please send the chuck-file (or if it's really big or so, send</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">a shorter demo of what's happening). Relevant output would also be nice.</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">And which version you are using.</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">But the chuck-file is most important.</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Gasten</font></p> </blockquote></div><br></div></body></html>