Fade an event pattern in by scaling its amplitude over a period of time.
\amp
argument in them.pattern |
The pattern to fade in. Must be an event pattern that plays a synth with the |
fadeTime |
The time it will take to fade. |
holdTime | |
tolerance |
The tolerance for the rounding of elapsed time used when setting the amplitude of the input pattern. |
Get or set the fadetime
Get or set the hold time
Get or set the tolerance used when rounding the internal time.
inval |
(
// Create a pattern that you want to fade
var pat = Pbind(\dur, 0.125, \degree, Pwhite(1,10));
// Fade it in over 30 beats
pat = PfadeIn.new(pattern:pat, fadeTime:30.0, holdTime:1.0, tolerance:0.0001);
// Play it
pat.play;
)