From bbfd9c379044e140cf03d00c27a3e695678d5f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sat, 13 Feb 2021 11:42:11 +0100 Subject: Initial compiling version of sample selection with position. --- src/inputprocessor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/inputprocessor.cc') 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) { -- cgit v1.2.3