diff options
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 c0c0e92..deae8ad 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -251,7 +251,8 @@ bool InputProcessor::processOnset(event_t& event, std::size_t pos, auto const power_min = instr->getMinPower(); float const power_span = power_max - power_min; float const instrument_level = power_min + event.velocity*power_span; - const auto sample = instr->sample(instrument_level, event.offset + pos); + // FIXME: bad variable naming of parameters + const auto sample = instr->sample(instrument_level, event.position, event.offset + pos); if(sample == nullptr) { |