diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-14 20:27:56 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-14 20:27:56 +0200 |
commit | 36a62ae3403f7cfb02bd8dde43b6b2fa96fe867b (patch) | |
tree | c4ea5f2f97e94688bd0ac96dbb198a8f1eb67491 /src/instrument.h | |
parent | 7bbc7520ecb2ff4fc020189c1fdfebd7d3bb8e42 (diff) |
Make all components use the same Random instance and add seed method on DrumGizmo class. Added dgreftest application for doing reference midifile rendering tests.
Diffstat (limited to 'src/instrument.h')
-rw-r--r-- | src/instrument.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/instrument.h b/src/instrument.h index a531aec..621dddb 100644 --- a/src/instrument.h +++ b/src/instrument.h @@ -42,7 +42,7 @@ class Instrument { friend class InstrumentParser; public: - Instrument(Settings& settings); + Instrument(Settings& settings, Random& rand); ~Instrument(); Sample* sample(level_t level, size_t pos); @@ -69,7 +69,6 @@ private: VersionStr version; RangeMap<level_t, Sample*> samples; - PowerList powerlist; void addSample(level_t a, level_t b, Sample* s); void finalise(); ///< Signal instrument that no more samples will be added. @@ -79,7 +78,8 @@ private: size_t lastpos; float mod; Settings& settings; - Random rand; + Random& rand; + PowerList powerlist; }; // typedef std::map< std::string, Instrument > Instruments; |