From 55e8a6a963abce921343fdbb7d01fee7cfd1741f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 16 Jul 2023 18:57:50 +0200 Subject: Add support for non-percussive instruments, responding to note-off events. --- src/domloader.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/domloader.cc') 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) -- cgit v1.2.3