From 9a13a563d0f2ec7af560321120742249e703e15a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 31 Jan 2017 00:43:43 +0100 Subject: [PATCH] fix a-fluidsynth midnam bank select --- libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc index fa1929ba02..4637c6be99 100644 --- a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc +++ b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc @@ -762,6 +762,11 @@ mn_file (LV2_Handle instance) for (BPMap::const_iterator i = ps.begin (); i != ps.end (); ++i, ++bn) { pf (" \n", i->first); if (i->second.size() > 0) { + pf (" \n"); + // this seems wrong (swapped MSB/LSB) but works - double check fluid + ardour. + pf (" \n", i->first & 127); + pf (" \n", (i->first >> 8) & 127); + pf (" \n"); pf (" \n"); int n = 0; for (BPList::const_iterator j = i->second.begin(); j != i->second.end(); ++j, ++n) { -- 2.30.2