summaryrefslogtreecommitdiff
path: root/src/instrument.cc
diff options
context:
space:
mode:
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;
+ }
+}