From 653acc7ddce597a31e4cc81feeff7cfc713741cc Mon Sep 17 00:00:00 2001 From: donluca <51792528+donluca@users.noreply.github.com> Date: Fri, 3 Mar 2023 16:03:13 +0000 Subject: [PATCH] Small fixes --- src/config.cpp | 6 +++--- src/minidexed.ini | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index 16571aa..d7d0980 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -47,10 +47,10 @@ void CConfig::Load (void) m_nDACI2CAddress = m_Properties.GetNumber ("DACI2CAddress", 0); m_bChannelsSwapped = m_Properties.GetNumber ("ChannelsSwapped", 0) != 0; - unsigned newVelocityScale = m_Properties.GetNumber ("VelocityScale", 1); - if (newVelocityScale == 2) { + unsigned newVelocityScale = m_Properties.GetNumber ("VelocityScale", 0); + if (newVelocityScale == 1) { m_VelocityScale = MIDI_VELOCITY_SCALING_DX7; - } else if (newVelocityScale == 3) { + } else if (newVelocityScale == 2) { m_VelocityScale = MIDI_VELOCITY_SCALING_DX7II; } else { m_VelocityScale = MIDI_VELOCITY_SCALING_OFF; diff --git a/src/minidexed.ini b/src/minidexed.ini index e230fae..e235ad7 100644 --- a/src/minidexed.ini +++ b/src/minidexed.ini @@ -10,8 +10,8 @@ SampleRate=48000 #ChunkSize=256 DACI2CAddress=0 ChannelsSwapped=0 -# VelocityScale: 0=OFF 1=DX7 2=DX7II -VelocityScale=0 +# VelocityScale ( 0=OFF ; 1=DX7 ; 2=DX7II ) +VelocityScale=0 # MIDI MIDIBaudRate=31250