envelopes¶
- class Envelope(len)¶
Bases:
object
- Parameters
len (float) – Length of the envelope in seconds
- Variables
triggered (boolean) – If the envelope is triggered or not
start_time (float) – The start time in seconds of the last envelope cycle
- get_sample(time)¶
- Parameters
time (float) – The time in seconds of which the sample should be gotten
- Returns
A PCM value for the node at the given time
- Return type
float
- trigger(time)¶
- Parameters
time (float) – A time in seconds
- class ExpEnv(len, gain=1.0, curve_gain=1.0, curvect=None, roll_off=100.0)¶
Bases:
py_modular.time.envelopes.Envelope
- Parameters
gain (float) – A value that dictates the output signal’s amplitude
curve_gain (float) – A value between -1.0 and 1.0 that determines the ammount of transform. -1.0 is logarithmic, 1.0 is exponential, and 0.0 is linear.
curvect – A node that will directly control curve_gain
roll_off (float) – A value that will control the ammount of filtering on sharp edges of the waveform
- curve_gain_to(value)¶
- Parameters
value (float) – A value between -1.0 and 1.0 that will control curve_gain
- get_sample(time)¶
- Parameters
time (float) – The time in seconds of which the sample should be gotten
- Returns
A PCM value for the node at the given time
- Return type
float