diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-02-17 19:29:11 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-02-17 19:29:11 +0100 |
commit | b16f9d793d6e3e4ab88efff112f2fca30ed87be5 (patch) | |
tree | 538ffc26bb779f4b32866dded0800f75cb8ef8a1 /src | |
parent | 60c6a871670e586beca2a76075efe996db833a96 (diff) |
Remove events from activeevents when ramped down.
Diffstat (limited to 'src')
-rw-r--r-- | src/drumgizmo.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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); } } |