diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-02-16 22:53:14 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-02-16 22:53:14 +0100 |
commit | 6f8895d89e983f186e162abf9225cf6c7b8f1016 (patch) | |
tree | 9d508abad899113f472c6a6ab7211e84ef7f77b3 /src/drumgizmo.cc | |
parent | 2aea36ece0881e0ee0885ae1ddc656f2260de57a (diff) |
Fix broken choke timing when humanized timing/latency is enabled.
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r-- | src/drumgizmo.cc | 2 |
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) |