[chuck-users] Envelope.last()

tazumi tazumi at gmail.com
Mon Jan 15 11:08:44 EST 2007


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 <dtrueman at princeton.edu>:
>
> 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 at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
>
>


-- 
tazumi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20070115/2f039ebc/attachment.htm 


More information about the chuck-users mailing list