summaryrefslogtreecommitdiff
path: root/src/instrument.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-07-15 20:35:52 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-07-15 20:41:10 +0200
commita0484778a9953dfd1948bf4dac71c51deab18cab (patch)
tree15b9ff0c0b745b0efb02375d285ade09bbdf0f18 /src/instrument.cc
parent34578fdef6a9f77aa285501130be55fcd560c03d (diff)
Revorked visualiser UI and a few more parameter tweaks.
Diffstat (limited to 'src/instrument.cc')
-rw-r--r--src/instrument.cc24
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;
+ }
+}