[chuck-users] WvOut2 disregards Pan2 information

Jean Menezes da Rocha jean at menezesdarocha.info
Mon Oct 5 13:14:59 EDT 2015


Nevermind, it was my fault (as I suspected). I was using an old
rec-auto-stereo.ck.
Now I am using the file from the github repo and everything works fine.
I think it had to do with the Gain UGen stated in the old file, btw.

Best regards!

On Mon, Oct 5, 2015 at 1:57 PM, Jean Menezes da Rocha <
jean at menezesdarocha.info> wrote:

> Hello, guys,
>
> I am trying to output a stereo .wav file using rec-auto-stereo.ck
> <http://chuck.cs.princeton.edu/doc/examples/basic/rec-auto-stereo.ck> (retrieved
> from the ChucK examples). Nonetheless, the exported file completely
> disregards instructions passed by Pan2, and every sound is panned to the
> center. If I run my script standalone (passing output to dac instead of
> WvOut2) the pan is correctly played.
>
> Take this test script:
>
> SinOsc s => Pan2 pan => dac;
>
> while ( true ) {
>     Math.random2f( 0.125, 0.5 ) => s.gain;
>     Math.random2f( 63, 1500 ) => s.freq;
>     Std.randf() => pan.pan;
>     Math.random2f( 40, 400 )::ms => now;
> }
>
> If I run it alone, it is correctly panned. If I run it against
> rec-auto-stereo.ck, the sound I hear from dac is duly panned, but in the
> resulting .wav file Pan2 information is discarded and everything goes to
> the center.
>
> Do anyone know what am I missing?
>
> Thanks in advance!
> --
> Jean Menezes da Rocha
> Compositor
> Professor -- Faculdades Est
> Mestre e Doutorando em Composição pela Universidade Federal da Bahia
>



-- 
Jean Menezes da Rocha
Compositor
Professor -- Faculdades Est
Mestre e Doutorando em Composição pela Universidade Federal da Bahia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20151005/6bf259dd/attachment.html>


More information about the chuck-users mailing list