From faaaf5d328429fd2c3f38131f7a874d056761f3f Mon Sep 17 00:00:00 2001 From: Sander Vocke Date: Sun, 28 Jul 2024 09:24:01 +0200 Subject: Openness development --- src/inputprocessor.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/inputprocessor.h') diff --git a/src/inputprocessor.h b/src/inputprocessor.h index a8dc45b..a68a517 100644 --- a/src/inputprocessor.h +++ b/src/inputprocessor.h @@ -3,7 +3,7 @@ * inputprocessor.h * * Sat Apr 23 20:39:30 CEST 2016 - * Copyright 2016 André Nusser + * Copyright 2016 Andr� Nusser * andre.nusser@googlemail.com ****************************************************************************/ @@ -28,6 +28,7 @@ #include #include +#include #include @@ -37,6 +38,7 @@ #include "id.h" #include "inputfilter.h" #include "engineevent.h" +#include "instrumentstate.h" struct Settings; class Random; @@ -62,7 +64,10 @@ private: bool processOnset(event_t& event, std::size_t pos, double resample_ratio); bool processChoke(event_t& event, std::size_t pos, double resample_ratio); + bool processStateChange(event_t& event, std::size_t pos); + bool processResetStates(); bool processStop(event_t& event); + bool processOpennessChange(event_t& event, Instrument &inst, float openness, size_t pos); //! Applies choke with rampdown time in ms to event starting at offset. void applyChoke(Settings& settings, SampleEvent& event, @@ -86,4 +91,5 @@ private: Settings& settings; float original_velocity{0.0f}; + std::unordered_map instrument_states; }; -- cgit v1.2.3