commit 191420412f2c443b9f963c6b6ef26637a8cb13ee
parent 2a3eadc7cb9657781869d877185ee58260338fe4
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Sun, 2 Mar 2025 12:50:40 +0100
export to .mid/.syx as multiple sysex, not as combined patch
Diffstat:
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/source/xtJucePlugin/xtPatchManager.cpp b/source/xtJucePlugin/xtPatchManager.cpp
@@ -158,7 +158,21 @@ namespace xtJucePlugin
if (xt::State::splitCombinedPatch(dumps, _patch->sysex))
{
if (applyModifications(dumps[0]))
+ {
+ if (_exportType == pluginLib::ExportType::File)
+ {
+ // hardware compatibility: multiple sysex
+ xt::SysEx r;
+
+ for (auto& dump : dumps)
+ r.insert(r.end(), dump.begin(), dump.end());
+
+ return r;
+ }
+
+ // emu compatibility: custom patch format, one sysex that includes everything
return xt::State::createCombinedPatch(dumps);
+ }
}
}