From 23f625be77c925569dfea8700103aff89d513b50 Mon Sep 17 00:00:00 2001 From: Sander Vocke Date: Tue, 23 Jul 2024 12:22:30 +0200 Subject: Add openness CC control for hi-hats. --- src/inputprocessor.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inputprocessor.cc') diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc index fa3498c..30ead8a 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -3,7 +3,7 @@ * inputprocessor.cc * * Sat Apr 23 20:39:30 CEST 2016 - * Copyright 2016 André Nusser + * Copyright 2016 Andr� Nusser * andre.nusser@googlemail.com ****************************************************************************/ @@ -37,7 +37,6 @@ #include "staminafilter.h" #include "velocityfilter.h" #include "positionfilter.h" - #include "cpp11fix.h" class VelocityStorer @@ -254,7 +253,8 @@ bool InputProcessor::processOnset(event_t& event, std::size_t pos, float const power_span = power_max - power_min; float const instrument_level = power_min + event.velocity*power_span; // FIXME: bad variable naming of parameters - const auto sample = instr->sample(instrument_level, event.position, event.offset + pos); + // FIXME: filter for openness? + const auto sample = instr->sample(instrument_level, event.position, event.openness, event.offset + pos); if(sample == nullptr) { -- cgit v1.2.3