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 1c693cde514d4945e283a89780bd7152e4da2e4a
parent 1470e4af153d8df1b628c509736a4d6e7b98dc77
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Mon, 28 Feb 2022 10:23:17 +0100

fix another issue when reading Virus PowerCore exported preset midi files

Diffstat:
Msource/synthLib/midiToSysex.cpp | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/source/synthLib/midiToSysex.cpp b/source/synthLib/midiToSysex.cpp @@ -90,14 +90,16 @@ namespace synthLib while(true) { const auto c = getc(hFile); - sysex.push_back(static_cast<uint8_t>(c)); if(c == 0xf7 || c == 0xf8) // Virus Powercore writes f8 instead of f7 { + sysex.push_back(0xf7); _sysexMessages.insert(_sysexMessages.end(), sysex.begin(), sysex.end()); break; } + sysex.push_back(static_cast<uint8_t>(c)); + if (feof(hFile)) break; }