diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-10-10 17:31:35 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-10-14 22:04:13 +0200 |
commit | 05270cd4abe1cc61fb680b801676436f10069413 (patch) | |
tree | 7bf77d0753c8a9822c2a7ff06016c8f73cddb186 /src/inputprocessor.cc | |
parent | 1f7d744819968aec3c82035f730558cb73e0bd18 (diff) |
Added 'normalized' attribute to sample tag.
Diffstat (limited to 'src/inputprocessor.cc')
-rw-r--r-- | src/inputprocessor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc index eb45f4b..e8f4cc7 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -208,9 +208,9 @@ bool InputProcessor::processOnset(event_t& event, { //DEBUG(inputprocessor, "Adding event %d.\n", event.offset); auto evt = new EventSample(ch.num, 1.0, af, instr->getGroup(), - instrument_id); + instrument_id); evt->offset = (event.offset + pos) * resample_ratio; - if(settings.normalized_samples.load()) + if(settings.normalized_samples.load() && sample->getNormalized()) { evt->scale *= event.velocity; } |