[chuck-users] driving filter frequency from an envelope?

Andrew C. Smith acsmith at willamette.edu
Thu Apr 23 12:07:32 EDT 2009

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;

    spork ~envdrive();
    10::second => now;

fun void envdrive(){
    now + 10::second => time then;
    while (now <= then)
        1::samp => now;
        e2.last()*440.0 + 100 => z.freq;

On Wed, Apr 22, 2009 at 8:35 AM, Kassen <signal.automatique at gmail.com> wrote:
> 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 at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users

More information about the chuck-users mailing list