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 fe2a7dddc9323947c3ad4486a2892baace1ce01c
parent 8eec92089f7d41014402ad36d6f75be4cfd90bf5
Author: lol-catz <91396648+lol-catz@users.noreply.github.com>
Date:   Fri,  1 Oct 2021 10:23:28 -0500

Merge branch 'dsp56300:dsp56300' into dsp56300

Diffstat:
Msource/virusLib/microcontroller.cpp | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/source/virusLib/microcontroller.cpp b/source/virusLib/microcontroller.cpp @@ -10,6 +10,8 @@ using namespace dsp56k; using namespace synthLib; +constexpr virusLib::Microcontroller::PlayMode g_defaultPlayMode = virusLib::Microcontroller::PlayModeSingle; + constexpr uint32_t g_sysexPresetHeaderSize = 9; constexpr uint32_t g_singleRamBankCount = 2; constexpr uint32_t g_presetsPerBank = 128; @@ -91,9 +93,12 @@ void Microcontroller::sendInitControlCommands() void Microcontroller::createDefaultState() { - sendControlCommand(PLAY_MODE, PlayModeMulti); -// writeSingle(0, 0, m_singleEditBuffer, false); - loadMulti(0, m_multiEditBuffer); + sendControlCommand(PLAY_MODE, g_defaultPlayMode); + + if constexpr (g_defaultPlayMode == PlayModeSingle) + writeSingle(0, SINGLE, m_singleEditBuffer); + else + loadMulti(0, m_multiEditBuffer); } bool Microcontroller::needsToWaitForHostBits(char flag1, char flag2) const