summaryrefslogtreecommitdiff
path: root/src/instrument.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-08-04 09:21:22 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2024-08-04 09:21:22 +0200
commite84e9938345bb124eb2d47a73fb324e95ac652be (patch)
treec319a12e7e1729e6d6821b415d3f812c7dd81224 /src/instrument.h
parentaf48a660a3410c3a63cab324fd8a345b648f821d (diff)
Diffstat (limited to 'src/instrument.h')
-rw-r--r--src/instrument.h5
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>>;