Robert,
This should work for you--sporked shreds run concurrently. A few
things: I changed your Phasor to Step. This way you can set the
multiplication value from any other shred, anywhere in the code
without changing the "envdrive" shred. I don't know a ton about the
computational thing, but basically with this method you're just
controlling what the control rate is for every individual item.
Everything is treated as audio, so it's up to you to decide what kind
of signal fidelity you need if it's control or audio.
Blit b => ResonZ z=> dac;
Step constant => Envelope e2 => blackhole;
constant.next(1.0);
while(true)
{
spork ~envdrive();
10::second => now;
}
fun void envdrive(){
now + 10::second => time then;
e2.time(10);
e2.value(0.01);
e2.target(2.0);
e2.keyOn(1);
while (now <= then)
{
1::samp => now;
e2.last()*440.0 + 100 => z.freq;
}
}
On Wed, Apr 22, 2009 at 8:35 AM, Kassen
Rob;
So: is there a way to directly control the resonant frequency at the UG level without breaking back into "user code"?
No, sorry.
(that was a easy one! :¬) )
Yours Kas. _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users