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 f2a9045627f43b34a82af34f55d5425e86e9ecd3
parent e36f07a282e3ca65d7c2f7de49e6aba710a31433
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat, 13 Jul 2024 14:27:49 +0200

remove obsolete code

Diffstat:
Msource/xtLib/xtState.cpp | 56--------------------------------------------------------
1 file changed, 0 insertions(+), 56 deletions(-)

diff --git a/source/xtLib/xtState.cpp b/source/xtLib/xtState.cpp @@ -223,62 +223,6 @@ namespace xt setParam(GlobalParameter::InputGain, 3); // 4 receive(unused, convertTo(m_global), Origin::External); - - // send default multi -// std::vector<uint8_t> defaultMultiData; -// 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: - { - 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>(LocationH::SingleEditBufferSingleMode); - dump[wLib::IdxLocation] = 0; - - forwardToDevice(dump); - } } bool State::setState(const std::vector<uint8_t>& _state, synthLib::StateType _type)