summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSander Vocke <sandervocke@gmail.com>2024-07-23 12:22:30 +0200
committerSander Vocke <sandervocke@gmail.com>2024-07-23 12:22:30 +0200
commit23f625be77c925569dfea8700103aff89d513b50 (patch)
treee9e794b31b3314bafc856c8da9c6eb0733e10eb7 /plugin
parentddd12cae8a21eba52a4d8fae9dced18878e0e055 (diff)
Add openness CC control for hi-hats.distance_openness
Diffstat (limited to 'plugin')
-rw-r--r--plugin/drumgizmo_plugin.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index 7960763..b07f43f 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -404,6 +404,7 @@ bool DrumGizmoPlugin::Input::isFreewheeling() const
return plugin.getFreeWheel();
}
+// TODO what is going on here
bool DrumGizmoPlugin::Input::loadMidiMap(const std::string& file,
const Instruments& i)
{
@@ -415,11 +416,11 @@ bool DrumGizmoPlugin::Input::loadMidiMap(const std::string& file,
for(const auto& entry : midimap)
{
// in case of multiple instruments mapped to one note, use '/' as separator
- if(!map[entry.note_id].empty())
+ if(!map[entry.from_id].empty())
{
- map[entry.note_id] += "/";
+ map[entry.from_id] += "/";
}
- map[entry.note_id] += entry.instrument_name;
+ map[entry.from_id] += entry.instrument_name;
}
midnam.reserve(map.size());