summaryrefslogtreecommitdiff
path: root/synth
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2011-01-14 13:57:25 +0100
committerFlorian Jung <flo@thinkpad.(none)>2011-01-14 13:57:25 +0100
commit4681a24d43cf1ec03751f271c1ed1eafd9c80a29 (patch)
tree71fda5363b67d0098febdfe58107d12a7f82b6e1 /synth
parentb2d0c97e0ca7b7eb0a7195ddbf263b9953171e66 (diff)
Fixed stupid bug in Envelope.cpp
Changed a "if (has_release) hold=false" into if (!has_release)
Diffstat (limited to 'synth')
-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);