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.cc | |
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.cc')
-rw-r--r-- | src/instrument.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/instrument.cc b/src/instrument.cc index cc052e9..9a4c0b7 100644 --- a/src/instrument.cc +++ b/src/instrument.cc @@ -30,8 +30,10 @@ #include "sample.h" -Instrument::Instrument(Settings& settings) +Instrument::Instrument(Settings& settings, Random& rand) : settings(settings) + , rand(rand) + , powerlist(rand) { DEBUG(instrument, "new %p\n", this); mod = 1.0; |