tenv
tenv is a trigger-based linear Attack/Hold/Release envelope generator. It takes the following arguments:
- trigger signal: a trigger-based signal to control the envelope
- attack: attack time (in seconds)
- hold: hold time (in seconds)
- release: release time (in seconds)
The following patch uses tenv to shape the amplitude of a sine wave:
# trigger: a 2Hz metronome
2 metro
# feed it into envelope generator
0.001 0.01 0.1 tenv
# multiply with sine wave
1000 0.5 sine *