Re: [chuck-users] 1. Stereo example problem with chuck-1.3.5.1 (Julien Saint-Martin)
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 - spencer@ccrma.stanford.edu // 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]; }
participants (1)
-
Perry Cook