diff options
Diffstat (limited to 'synth/envelope.cpp')
-rw-r--r-- | synth/envelope.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synth/envelope.cpp b/synth/envelope.cpp index 13b1044..837b4a7 100644 --- a/synth/envelope.cpp +++ b/synth/envelope.cpp @@ -85,6 +85,14 @@ void Envelope::reattack() sustain=sustain_orig; } +void Envelope::reset() +{ + state=ATTACK; + sustain=sustain_orig; + level=0; + t=0; +} + void Envelope::release_key() { if (has_release_phase) |