Hello, I have to preface this by saying that I may be missing an obvious answer, but what object will allow me to wait for an amount of time before a shred is active? Usually I set the gain to zero (on the otf 7 patch) for a few phrases and that works fine: after a minute, I can have a snare drum come in for a chorus. Though I'm afraid that there's a more logical way to do this... Thanks
I don't understand the question completely, but if you want a shred to have
a delay before it starts doing anything, just put a wait at the start of the
function:
fun void myShred(dur startDelay) {
startDelay => now;
// do stuff
}
spork ~ myShred(200::ms);
/Stefan
2010/6/29 Timothy Leonido
Hello, I have to preface this by saying that I may be missing an obvious answer, but what object will allow me to wait for an amount of time before a shred is active? Usually I set the gain to zero (on the otf 7 patch) for a few phrases and that works fine: after a minute, I can have a snare drum come in for a chorus. Though I'm afraid that there's a more logical way to do this... Thanks
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
2010/6/29 Stefan Blixt
I don't understand the question completely, but if you want a shred to have a delay before it starts doing anything, just put a wait at the start of the function:
Indeed. It might also help to define the UGen chain, load samples, etc at the top of the file and only connect the whole thing to the dac once it's needed. That would save CPU compared to what Timothy does now and it would prevent memory allocation and HD access in the middle of the piece, where they might cause glitches. Of course this only helps in the case of UGens, not in the general case like your answer, but I got the impression that the question was mainly about UGen behaviour. Yours, Kas.
participants (3)
-
Kassen
-
Stefan Blixt
-
Timothy Leonido