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 cff75be1cb6232f1b4a6b900f5c846d63416e7f4
parent 560cf678d605817c843e0a6048fefe5853d82469
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun, 29 Sep 2024 12:24:43 +0200

fix wave data to midi conversion

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

diff --git a/source/xtLib/xtState.cpp b/source/xtLib/xtState.cpp @@ -746,7 +746,7 @@ namespace xt for(uint32_t i=0; i<_wave.size()>>1; ++i) { - const auto sample = _wave[i] ^ 0x80; + const int sample = static_cast<uint8_t>(_wave[i] ^ 0x80); sysex.push_back(static_cast<uint8_t>(sample >> 4)); sysex.push_back(static_cast<uint8_t>(sample & 0xf));