summaryrefslogtreecommitdiff
path: root/src/instrument.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/instrument.cc')
-rw-r--r--src/instrument.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/instrument.cc b/src/instrument.cc
index 5c96c6d..466acc1 100644
--- a/src/instrument.cc
+++ b/src/instrument.cc
@@ -117,3 +117,10 @@ void Instrument::setGroup(const std::string& g)
{
_group = g;
}
+
+std::size_t Instrument::getNumberOfFiles() const
+{
+ // Note: Each AudioFile instance contains just a single channel even for
+ // multi-channel files.
+ return audiofiles.size();
+}