<div dir="ltr">George,<div><br></div><div>This has been a source of problems the past few versions as we have refactored WvOut to optimize real-time performance. That being said I can't reproduce this bug on Windows XP with chuck 1.3.3.0 or 1.3.4.0. I can't test on Windows 7 at the moment, but I may be able to try that a bit later. </div>
<div><br></div><div>A few ideas-</div><div><br></div><div>- Try an absolute path for the file path, or use me.dir():</div><div>me.dir() + "/blerg.wav" => string file;</div><div>There might be some strange file permissions issues happening if the destination file isn't in a directory chuck can write to. </div>
<div><br></div><div>- Try updating to the latest version of chuck/mini (1.3.4.0). </div><div><br></div><div>- Do you get the same results in the command line version of chuck as in miniAudicle? </div><div><br></div><div>spencer</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 14, 2014 at 4:32 AM, Michael Heuer <span dir="ltr"><<a href="mailto:heuermh@gmail.com" target="_blank">heuermh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello George,<br>
<br>
Your example seems to work fine for me on Windows XP<br>
<br>
$ chuck --version<br>
chuck version: 1.3.4.0 (chimera)<br>
microsoft win32 : 32-bit<br>
<a href="http://chuck.cs.princeton.edu/" target="_blank">http://chuck.cs.princeton.edu/</a><br>
<a href="http://chuck.stanford.edu/" target="_blank">http://chuck.stanford.edu/</a><br>
<br>
$ cat <a href="http://blerg.ck" target="_blank">blerg.ck</a><br>
<div class="">SinOsc s => Gain g => dac;<br>
s.freq(400);<br>
g.gain(0.5);<br>
g => WvOut w => blackhole;<br>
"blerg.wav" => string file;<br>
w.wavFilename(file);<br>
1::second => now;<br>
w.closeFile(file); // what is the function of the argument here? can<br>
WvOut record multiple buffers at once?<br>
<br>
</div>$ chuck <a href="http://blerg.ck" target="_blank">blerg.ck</a><br>
<br>
blerg.wav opens fine in VLC, Audacity, and Reaper.<br>
<span class="HOEnZb"><font color="#888888"><br>
michael<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, Jun 13, 2014 at 11:39 AM, George Locke<br>
<<a href="mailto:george.locke.maxmsp@gmail.com">george.locke.maxmsp@gmail.com</a>> wrote:<br>
> just going to bump this. chuck can't record a wav! what?!<br>
><br>
> aifFilename is working, so at least I can record what I'm doing. but srsly,<br>
> ppl, this is a major bug.<br>
><br>
> - George<br>
><br>
><br>
> On Tue, Jun 10, 2014 at 5:02 PM, George Locke<br>
> <<a href="mailto:george.locke.maxmsp@gmail.com">george.locke.maxmsp@gmail.com</a>> wrote:<br>
>><br>
>> Thanks for the reply. I tried w.closeFile() (w/o the argument), and I<br>
>> tried ending the script with null @=> w; and neither has helped.<br>
>><br>
>> Regards,<br>
>> George<br>
>><br>
>><br>
>> On Tue, Jun 10, 2014 at 4:43 PM, Tom Lieber <<a href="mailto:tom@alltom.com">tom@alltom.com</a>> wrote:<br>
>>><br>
>>> This probably isn’t helpful, but I’m using the same versions of ChucK and<br>
>>> miniAudicle on OS X and the blerg.wav file looks fine.<br>
>>><br>
>>> I’ve had trouble generating WAV files from miniAudicle in the past, but I<br>
>>> think that was when I didn’t call closeFile() explicitly and ChucK never<br>
>>> flushed.<br>
>>><br>
>>> I don’t think the argument to closeFile does anything, so I never provide<br>
>>> it. :)<br>
>>><br>
>>><br>
>>> 2014-06-10 8:34 GMT-07:00 George Locke <<a href="mailto:george.locke.maxmsp@gmail.com">george.locke.maxmsp@gmail.com</a>>:<br>
>>>><br>
>>>> Hi,<br>
>>>><br>
>>>> The output format of WvOut is coming out wrong. Audacity doesn't<br>
>>>> recognize it as a wav (does not recognize type, suggests import raw), and<br>
>>>> windows media player rejects it as well. Importing the file into Audacity<br>
>>>> as raw data works somewhat, but as I'm diagnosing a dc-offset, I need an<br>
>>>> exact result.<br>
>>>><br>
>>>> here's some example code:<br>
>>>><br>
>>>> SinOsc s => Gain g => dac;<br>
>>>> s.freq(400);<br>
>>>> g.gain(0.5);<br>
>>>> g => WvOut w => blackhole;<br>
>>>> "blerg.wav" => string file;<br>
>>>> w.wavFilename(file);<br>
>>>> 1::second => now;<br>
>>>> w.closeFile(file); // what is the function of the argument here? can<br>
>>>> WvOut record multiple buffers at once?<br>
>>>><br>
>>>><br>
>>>> I'm not so experienced with chuck but experienced in "normal" computer<br>
>>>> programming. Running miniAudicle 1.3.1 with chuck 1.3.3.0 on windows 7 pro<br>
>>>> sp1 (32 bit).<br>
>>>><br>
>>>> Thanks,<br>
>>>> George<br>
>>>><br>
>>>><br>
>>>><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>
>>><br>
>>><br>
>>><br>
>>> --<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><br>
>>><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>
>><br>
><br>
><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>
_______________________________________________<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>
</div></div></blockquote></div><br></div>