diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-07-15 20:35:52 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-07-15 20:41:10 +0200 |
commit | a0484778a9953dfd1948bf4dac71c51deab18cab (patch) | |
tree | 15b9ff0c0b745b0efb02375d285ade09bbdf0f18 /src/instrument.cc | |
parent | 34578fdef6a9f77aa285501130be55fcd560c03d (diff) |
Revorked visualiser UI and a few more parameter tweaks.
Diffstat (limited to 'src/instrument.cc')
-rw-r--r-- | src/instrument.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/instrument.cc b/src/instrument.cc index 077ae55..6627a41 100644 --- a/src/instrument.cc +++ b/src/instrument.cc @@ -124,3 +124,27 @@ std::size_t Instrument::getNumberOfFiles() const // multi-channel files. return audiofiles.size(); } + +float Instrument::getMaxPower() const +{ + if(version >= VersionStr("2.0")) + { + return powerlist.getMaxPower(); + } + else + { + return 1.0f; + } +} + +float Instrument::getMinPower() const +{ + if(version >= VersionStr("2.0")) + { + return powerlist.getMinPower(); + } + else + { + return 0.0f; + } +} |