psychos.sound.LinearDecayEnvelope#
- class psychos.sound.LinearDecayEnvelope(peak=1.0)[source]#
Bases:
EnvelopeA linearly decaying envelope.
This envelope linearly decays the amplitude from the peak value to 0, over the length of the waveform.
- Parameters:
- peakfloat
The Initial peak value of the envelope, from 0.0 to 1.0. Values outside this range will be clamped.
Methods
__init__([peak])get_generator(sample_rate, duration)Get a generator instance.