summaryrefslogtreecommitdiff
path: root/src/drumgizmo.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-02-16 22:53:14 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-02-16 22:53:14 +0100
commit6f8895d89e983f186e162abf9225cf6c7b8f1016 (patch)
tree9d508abad899113f472c6a6ab7211e84ef7f77b3 /src/drumgizmo.cc
parent2aea36ece0881e0ee0885ae1ddc656f2260de57a (diff)
Fix broken choke timing when humanized timing/latency is enabled.
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r--src/drumgizmo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index 9828c6b..b67e91a 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -311,7 +311,7 @@ repeat:
assert(t >= 0);
assert(t < evt.buffer_size - evt.buffer_ptr);
- if(evt.rampdownInProgress() && evt.rampdown_offset < (evt.t + t) &&
+ if(evt.hasRampdown() && evt.rampdown_offset < (pos + t) &&
evt.rampdown_count > 0)
{
if(evt.ramp_length > 0)