<div dir="ltr"><div>Thanks for the reply.  I tried w.closeFile() (w/o the argument), and I tried ending the script with null @=&gt; w; and neither has helped.<br></div><div><br></div><div>Regards,</div><div>George</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 10, 2014 at 4:43 PM, Tom Lieber <span dir="ltr">&lt;<a href="mailto:tom@alltom.com" target="_blank">tom@alltom.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">This probably isn’t helpful, but I’m using the same versions of ChucK and miniAudicle on OS X and the blerg.wav file looks fine.<div><br></div><div>I’ve had trouble generating WAV files from miniAudicle in the past, but I think that was when I didn’t call closeFile() explicitly and ChucK never flushed.<div>


<br></div><div>I don’t think the argument to closeFile does anything, so I never provide it. :)</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-10 8:34 GMT-07:00 George Locke <span dir="ltr">&lt;<a href="mailto:george.locke.maxmsp@gmail.com" target="_blank">george.locke.maxmsp@gmail.com</a>&gt;</span>:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>The output format of WvOut is coming out wrong.  Audacity doesn&#39;t recognize it as a wav (does not recognize type, suggests import raw), and windows media player rejects it as well.  Importing the file into Audacity as raw data works somewhat, but as I&#39;m diagnosing a dc-offset, I need an exact result.</div>



<div><br></div><div>here&#39;s some example code:</div><div><div><br></div><div>SinOsc s =&gt; Gain g =&gt; dac;</div><div>s.freq(400);</div><div>g.gain(0.5);</div><div>g =&gt; WvOut w =&gt; blackhole;</div><div>&quot;blerg.wav&quot; =&gt; string file;</div>



<div>w.wavFilename(file);</div><div>1::second =&gt; now;</div><div>w.closeFile(file); // what is the function of the argument here? can WvOut record multiple buffers at once?</div></div><div><br></div><div><br></div><div>



I&#39;m not so experienced with chuck but experienced in &quot;normal&quot; computer programming.  Running miniAudicle 1.3.1 with chuck 1.3.3.0 on windows 7 pro sp1 (32 bit).</div><div><br></div><div>Thanks,</div><div>George</div>



<div><br></div><div><br></div></div>
<br></div></div>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">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>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><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>
</font></span></div>
<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>
<br></blockquote></div><br></div>