hi, the Envelope UGen has no last() methode ... (instead value() does the same i think) micha
Hi Micha, Envelope.last() should be present (using 1.2.0.5-rc1 out of CVS here, but .last() should have been available since 1.2.0.0). last() is defined in UGen, and Envelope extends UGen. Try: noise n => Envelope e => dac; // ramp to .1 .1 => e.target; while( true ) { <<< e.last(), e.value() >>>; 100::ms => now; } Does it work? .value() should return the current amplitude of the envelope (should go to and stay at .1 in this example) whereas .last() should return the sample value coming out of the UGen. Best, Ge! On Thu, 5 Jan 2006, michael breitenbach wrote:
hi, the Envelope UGen has no last() methode ... (instead value() does the same i think) micha
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Am 06.01.2006 um 19:30 schrieb Ge Wang:
Does it work? .value() should return the current amplitude of the envelope (should go to and stay at .1 in this example) whereas .last() should return the sample value coming out of the UGen.
o.k. it works - my mistake was: i have seen Envelope as a UGen with only a output and ignored the input. thanks micha
participants (2)
-
Ge Wang
-
michael breitenbach