summaryrefslogtreecommitdiff
path: root/src/domloader.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-07-16 18:57:50 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2023-07-17 12:10:05 +0200
commit55e8a6a963abce921343fdbb7d01fee7cfd1741f (patch)
tree5425fe51527927b5430c55ee19064b89c12f6819 /src/domloader.cc
parent6c9b69b0471fe72c8793d671f267ead3634ef3ac (diff)
Add support for non-percussive instruments, responding to note-off events.
Diffstat (limited to 'src/domloader.cc')
-rw-r--r--src/domloader.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/domloader.cc b/src/domloader.cc
index c78ed75..90dac5f 100644
--- a/src/domloader.cc
+++ b/src/domloader.cc
@@ -94,6 +94,7 @@ bool DOMLoader::loadDom(const std::string& basepath,
instrument->_name = instrumentdom.name;
instrument->version = instrumentdom.version;
instrument->_description = instrumentdom.description;
+ instrument->_percussive = instrumentdom.percussive == "true";
auto path = getPath(basepath + "/" + instrumentref.file);
for(const auto& sampledom : instrumentdom.samples)