summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--synth/envelope.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/synth/envelope.cpp b/synth/envelope.cpp
index 2f06a4e..a6e79e0 100644
--- a/synth/envelope.cpp
+++ b/synth/envelope.cpp
@@ -13,7 +13,7 @@ Envelope::Envelope(env_settings_t s, int frames)
has_release_phase=(s.release>=0);
- if (has_release_phase)
+ if (!has_release_phase)
s.hold=false;
set_attack(s.attack);