From b1df2ef63c8fbe0cf388b171f106d3fff3ced92e Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 20 Feb 2022 20:10:15 +0100 Subject: [PATCH] Support Serial MIDI https://github.com/probonopd/MiniDexed/issues/20#issuecomment-1046300598 Thanks @rsta2 --- src/kernel.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kernel.cpp b/src/kernel.cpp index 896593a..717fdaa 100644 --- a/src/kernel.cpp +++ b/src/kernel.cpp @@ -38,7 +38,10 @@ bool CKernel::Initialize (void) return FALSE; } - m_Dexed.activate(); + if (!m_Dexed.Initialize ()) + { + return FALSE; + } return TRUE; } @@ -47,8 +50,6 @@ CStdlibApp::TShutdownMode CKernel::Run (void) { std::cout << "Hello MiniDexed!\n"; - m_Dexed.Start (); - std::cout << "Loading hardcoded fmpiano_sysex...\n"; m_Dexed.loadVoiceParameters(fmpiano_sysex); m_Dexed.setTranspose(24);