Hi,
another way is to use the function Envelope.value() where you can not only
set but also get
the actual envelope value... (the value of the envelope itself and not of
the enveloped signal)
SinOsc s => dac;
Envelope e => blackhole;
10. => e.time;
s.freq = 220.;
e.target(440.);
while (20::ms => now){
e.value() => s.freq;
}
so you do not need another ugen as a source..
2007/1/13, dan trueman
can Envelope work like SinOsc to control ugen parameters? meaning, something like this, hacked from the lovely ChucK manual blackhole example:
SinOsc s => dac; Envelope e => blackhole; 10. => lfo.time; s.freq = 220.; e.target(440.);
while (20::ms => now){ e.last() => s.freq; }
?
it doesn't work, and it seems that e.last() doesn't actually give you anything. obviously there are other ways to do this, but i'm trying to *learn* here!
takk, dan
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- tazumi