commit c04c460aaaf21d621fc7fef6efbda3fc42a9e8c2
parent 69242848cf8679ec75b8058032723040c3974bed
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Sat, 20 Apr 2024 02:10:21 +0200
fix patch numbers in saved patches
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/xtJucePlugin/xtPatchManager.cpp b/source/xtJucePlugin/xtPatchManager.cpp
@@ -66,8 +66,8 @@ namespace xtJucePlugin
{
program = std::clamp(_patch->program, 0u, 299u);
- bank = program / 100;
- program -= bank * 100;
+ bank = program / 128;
+ program -= bank * 128;
}
return m_controller.createSingleDump(static_cast<xt::LocationH>(static_cast<uint8_t>(xt::LocationH::SingleBankA) + bank), static_cast<uint8_t>(program), parameterValues);