From b16f9d793d6e3e4ab88efff112f2fca30ed87be5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 17 Feb 2015 19:29:11 +0100 Subject: Remove events from activeevents when ramped down. --- src/drumgizmo.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc index 2f2232c..ddb6358 100644 --- a/src/drumgizmo.cc +++ b/src/drumgizmo.cc @@ -422,12 +422,13 @@ void DrumGizmo::getSamples(int ch, int pos, sample_t *s, size_t sz) evt->rampdown--; } + if(evt->rampdown == 0) { + removeevent = true; // Down ramp done. Remove event. + } } if(evt->t >= af->size) { removeevent = true; -// LAZYLOAD: -// loader.reset(af); } } -- cgit v1.2.3