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 330c9c3141f09c38462e1e8a2e66ca0d3fe55c69
parent 377333020434d87aa4f49aeda8348ec9dcf33dba
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Fri,  1 Oct 2021 17:21:21 +0200

switch default play mode to Single

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