gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 2149bda137bfc64d576b9404c2d5229e61b5cc53
parent 820a05f07fc83db741c1967109164cc9cae2a37a
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Wed,  1 May 2024 18:49:15 +0200

remove ability to dump patches to device directly, usage of patch manager is the preferred way to use presets

Diffstat:
Msource/mqLib/mqstate.cpp | 49-------------------------------------------------
1 file changed, 0 insertions(+), 49 deletions(-)

diff --git a/source/mqLib/mqstate.cpp b/source/mqLib/mqstate.cpp @@ -204,57 +204,8 @@ namespace mqLib createSequencerMultiData(defaultMultiData); sendMulti(defaultMultiData); - std::vector<uint8_t> sysex; - - // accept files up to 300k as larger files might be the OS - const auto midifile = synthLib::findFile(".mid", 0, 300 * 1024); - if(!midifile.empty()) - { - synthLib::MidiToSysex::readFile(sysex, midifile.c_str()); - } - - if(sysex.empty()) - { - const auto syxFile = synthLib::findFile(".syx", 0, 300 * 1024); - if(!syxFile.empty()) - synthLib::readFile(sysex, syxFile); - } - - if (!sysex.empty()) - { - std::vector<std::vector<uint8_t>> messages; - synthLib::MidiToSysex::splitMultipleSysex(messages, sysex); - - for (const auto& message : messages) - { - switch (getCommand(message)) - { - case SysexCommand::SingleDump: - case SysexCommand::MultiDump: - case SysexCommand::DrumDump: - { - auto m = message; - m[wLib::IdxDeviceId] = wLib::IdDeviceOmni; - loadState(m); - } - break; - default:; - } - } - } - // switch to Single mode as the multi dump causes it to go to Multi mode sendGlobalParameter(GlobalParameter::SingleMultiMode, 0); - - if(isValid(m_romSingles[0])) - { - auto dump = convertTo(m_romSingles[0]); - - dump[wLib::IdxBuffer] = static_cast<uint8_t>(MidiBufferNum::SingleEditBufferSingleMode); - dump[wLib::IdxLocation] = 0; - - forwardToDevice(dump); - } } bool State::getState(std::vector<uint8_t>& _state, synthLib::StateType _type) const