[chuck-users] WvOut format

George Locke george.locke.maxmsp at gmail.com
Fri Jun 13 12:39:39 EDT 2014


just going to bump this.  chuck can't record a wav!  what?!

aifFilename is working, so at least I can record what I'm doing.  but
srsly, ppl, this is a major bug.

 - George


On Tue, Jun 10, 2014 at 5:02 PM, George Locke <george.locke.maxmsp at gmail.com
> wrote:

> Thanks for the reply.  I tried w.closeFile() (w/o the argument), and I
> tried ending the script with null @=> w; and neither has helped.
>
> Regards,
> George
>
>
> On Tue, Jun 10, 2014 at 4:43 PM, Tom Lieber <tom at alltom.com> wrote:
>
>> 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.
>>
>> 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.
>>
>> I don’t think the argument to closeFile does anything, so I never provide
>> it. :)
>>
>>
>> 2014-06-10 8:34 GMT-07:00 George Locke <george.locke.maxmsp at gmail.com>:
>>
>>> Hi,
>>>
>>> The output format of WvOut is coming out wrong.  Audacity doesn'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'm diagnosing a dc-offset, I
>>> need an exact result.
>>>
>>> here's some example code:
>>>
>>> SinOsc s => Gain g => dac;
>>> s.freq(400);
>>> g.gain(0.5);
>>> g => WvOut w => blackhole;
>>> "blerg.wav" => string file;
>>> w.wavFilename(file);
>>> 1::second => now;
>>> w.closeFile(file); // what is the function of the argument here? can
>>> WvOut record multiple buffers at once?
>>>
>>>
>>> I'm not so experienced with chuck but experienced in "normal" computer
>>> programming.  Running miniAudicle 1.3.1 with chuck 1.3.3.0 on windows 7 pro
>>> sp1 (32 bit).
>>>
>>> Thanks,
>>> George
>>>
>>>
>>>
>>> _______________________________________________
>>> chuck-users mailing list
>>> chuck-users at lists.cs.princeton.edu
>>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>>
>>>
>>
>>
>> --
>> Tom Lieber
>> http://AllTom.com/
>> http://infinite-sketchpad.com/
>>
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20140613/3624d94f/attachment.html>


More information about the chuck-users mailing list