Yep, this is broken as written in the examples.  I think that
Spencer and Ge were looking at modifying ChucK so this
would work, but for now you have to explicitly wire up things.

Spencer/Ge, chime in here if I”m wrong and this is now
implemented, but I don’t see it working for me.

To fix, you can modify the first few lines to look like this.
Note that we hook up each SndBuf to a pann, then we
hook the left and right outputs of each pan to the left and
right reverbs. 

// dope storm
// using arrays as UGen busses
// author: Spencer Salazar - [email protected]
// date: May 2013

SndBuf buf[32];
Pan2 pan[32];
NRev reverb[2];
reverb[0] => dac.left;
reverb[1] => dac.right;

0.1 => reverb[0].mix;
0.11 => reverb[1].mix;

for(int i; i < buf.cap(); i++)
{
    // load dope sound
    "special:dope" => buf[i].read;
    // set to end
    buf[i].samples() => buf[i].pos;
    buf[i] => pan[i];
    pan[i].chan(0) => reverb[0];
    pan[i].chan(1) => reverb[1];
}


_______________________________________________
chuck-users mailing list
[email protected]
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users

Reply via email to