diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-08-05 16:21:04 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-08-05 16:21:04 +0200 |
commit | e517296012efd234c8991a7b1fef3db51da116be (patch) | |
tree | 7adc44019d76abdce23dfb24d21cecbe61faba9e /src/inputprocessor.cc | |
parent | a0e2b9398a06ca2ea164c2ffd6fd89f713b93598 (diff) |
Fix rampdown offsets.
Diffstat (limited to 'src/inputprocessor.cc')
-rw-r--r-- | src/inputprocessor.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc index 1421d43..0adc389 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -138,7 +138,8 @@ bool InputProcessor::processOnset(event_t& event, // TODO: This must be configurable at some point... // ... perhaps even by instrument (ie. in the xml file) std::size_t ramp_length = (68./1000.)*settings.samplerate.load(); - event_sample.rampdown_count = event.offset + ramp_length; + event_sample.rampdown_count = ramp_length; + event_sample.rampdown_offset = event.offset; event_sample.ramp_length = ramp_length; } } |