From e84e9938345bb124eb2d47a73fb324e95ac652be Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 4 Aug 2024 09:21:22 +0200 Subject: WIP --- src/instrument.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/instrument.h') diff --git a/src/instrument.h b/src/instrument.h index 5f79882..35f4e5b 100644 --- a/src/instrument.h +++ b/src/instrument.h @@ -50,7 +50,8 @@ public: ~Instrument(); // FIXME: variable naming - const Sample* sample(float power, float instrument_power_range, float position, std::size_t pos); + const Sample* sample(float power, float instrument_power_range, float position, + float instrument_position_range, std::size_t pos); std::size_t getID() const; const std::string& getName() const; @@ -74,6 +75,7 @@ public: double max; }; PowerRange getPowers(float position) const; + PowerRange getPositionRange() const; const std::vector& getChokes(); @@ -107,6 +109,7 @@ private: PowerList powerlist; std::vector chokes; SampleSelection sample_selection; + PowerRange position_range{}; }; using Instruments = std::vector>; -- cgit v1.2.3