From 23f625be77c925569dfea8700103aff89d513b50 Mon Sep 17 00:00:00 2001 From: Sander Vocke Date: Tue, 23 Jul 2024 12:22:30 +0200 Subject: Add openness CC control for hi-hats. --- plugin/drumgizmo_plugin.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugin') 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()); -- cgit v1.2.3