diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-08-04 09:21:22 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-08-04 09:21:22 +0200 |
commit | e84e9938345bb124eb2d47a73fb324e95ac652be (patch) | |
tree | c319a12e7e1729e6d6821b415d3f812c7dd81224 /src/instrument.h | |
parent | af48a660a3410c3a63cab324fd8a345b648f821d (diff) |
WIPdistance
Diffstat (limited to 'src/instrument.h')
-rw-r--r-- | src/instrument.h | 5 |
1 files changed, 4 insertions, 1 deletions
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<Choke>& getChokes(); @@ -107,6 +109,7 @@ private: PowerList powerlist; std::vector<Choke> chokes; SampleSelection sample_selection; + PowerRange position_range{}; }; using Instruments = std::vector<std::unique_ptr<Instrument>>; |