diff options
author | Sander Vocke <sandervocke@gmail.com> | 2024-07-28 09:24:01 +0200 |
---|---|---|
committer | Sander Vocke <sandervocke@gmail.com> | 2024-07-28 09:24:01 +0200 |
commit | faaaf5d328429fd2c3f38131f7a874d056761f3f (patch) | |
tree | c49575d96ac820addefcf184ec7ad4f0151bc716 /src/instrument.h | |
parent | f6660bc51fe8c02ff7c3b6188e8437c67712bddf (diff) |
Openness development
Diffstat (limited to 'src/instrument.h')
-rw-r--r-- | src/instrument.h | 7 |
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; |