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 1fd97651035b3fe4b5ecefe8bc98b5abb257e19f
parent b8a3ed45ec056443d8389fc7f6566c715c706de7
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat, 15 Jun 2024 01:46:09 +0200

fix waveform conversion

Diffstat:
Msource/xtJucePlugin/weData.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/xtJucePlugin/weData.cpp b/source/xtJucePlugin/weData.cpp @@ -63,11 +63,11 @@ namespace xtJucePlugin for(uint32_t i=0; i<data.size()>>1; ++i) { - auto sample = (_msg[off + i]) << 4 | _msg[off + i + 1]; + auto sample = (_msg[off + (i<<1)]) << 4 | _msg[off + (i<<1) + 1]; sample = sample ^ 0x80; data[i] = static_cast<int8_t>(sample); - data[64+i] = static_cast<int8_t>(-sample); + data[127-i] = static_cast<int8_t>(-sample); } setWave(index, data);