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 1e1afb0fc455d99b3560fca3e4f28c0ad72641ef
parent 5e2897af88a390cf418672341e01a1a37c81080b
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat, 18 May 2024 17:37:04 +0200

[Framework][Fix] Patch export as .mid created broken midi files

Diffstat:
Msource/synthLib/sysexToMidi.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/synthLib/sysexToMidi.cpp b/source/synthLib/sysexToMidi.cpp @@ -44,7 +44,7 @@ namespace synthLib _dst.write(reinterpret_cast<const char*>(&message[1]), static_cast<std::streamsize>(message.size() - 1)); } const auto newPos = _dst.tellp(); - const auto trackChunkLength = newPos - trackChunkBegin; + const auto trackChunkLength = newPos - trackChunkBegin - 4; // exclude the chunk length writeBuf(_dst, {0xff,0x2f,0x00}); // end of track