summaryrefslogtreecommitdiff
path: root/src/instrument.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/instrument.h')
-rw-r--r--src/instrument.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/instrument.h b/src/instrument.h
index c06ccdc..e5de348 100644
--- a/src/instrument.h
+++ b/src/instrument.h
@@ -46,10 +46,10 @@ struct Choke;
class Instrument
{
public:
- Instrument(Settings& settings, Random& rand);
+ Instrument(Settings& settings, Random& rand, float openness_choke_threshold);
~Instrument();
- const Sample* sample(level_t level, size_t pos);
+ const Sample* sample(level_t level, float openness, std::size_t pos);
std::size_t getID() const;
const std::string& getName() const;
@@ -70,6 +70,8 @@ public:
float getMaxPower() const;
float getMinPower() const;
+ float getOpennessChokeThreshold() const;
+
const std::vector<Choke>& getChokes();
private:
@@ -98,6 +100,7 @@ private:
size_t lastpos;
float mod;
+ float openness_choke_threshold;
Settings& settings;
Random& rand;
PowerList powerlist;