summaryrefslogtreecommitdiff
path: root/src/instrument.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/instrument.h')
-rw-r--r--src/instrument.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/instrument.h b/src/instrument.h
index 89918de..5f79882 100644
--- a/src/instrument.h
+++ b/src/instrument.h
@@ -50,7 +50,7 @@ public:
~Instrument();
// FIXME: variable naming
- const Sample* sample(level_t level, float position, std::size_t pos);
+ const Sample* sample(float power, float instrument_power_range, float position, std::size_t pos);
std::size_t getID() const;
const std::string& getName() const;
@@ -68,8 +68,12 @@ public:
//! Get the number of audio files (as in single channel) in this instrument.
std::size_t getNumberOfFiles() const;
- float getMaxPower() const;
- float getMinPower() const;
+ struct PowerRange
+ {
+ double min;
+ double max;
+ };
+ PowerRange getPowers(float position) const;
const std::vector<Choke>& getChokes();
@@ -98,7 +102,6 @@ private:
std::deque<InstrumentChannel> instrument_channels;
size_t lastpos;
- float mod;
Settings& settings;
Random& rand;
PowerList powerlist;