Small fixes

pull/446/head
donluca 2 years ago
parent 7e38721a44
commit 653acc7ddc
  1. 6
      src/config.cpp
  2. 4
      src/minidexed.ini

@ -47,10 +47,10 @@ void CConfig::Load (void)
m_nDACI2CAddress = m_Properties.GetNumber ("DACI2CAddress", 0); m_nDACI2CAddress = m_Properties.GetNumber ("DACI2CAddress", 0);
m_bChannelsSwapped = m_Properties.GetNumber ("ChannelsSwapped", 0) != 0; m_bChannelsSwapped = m_Properties.GetNumber ("ChannelsSwapped", 0) != 0;
unsigned newVelocityScale = m_Properties.GetNumber ("VelocityScale", 1); unsigned newVelocityScale = m_Properties.GetNumber ("VelocityScale", 0);
if (newVelocityScale == 2) { if (newVelocityScale == 1) {
m_VelocityScale = MIDI_VELOCITY_SCALING_DX7; m_VelocityScale = MIDI_VELOCITY_SCALING_DX7;
} else if (newVelocityScale == 3) { } else if (newVelocityScale == 2) {
m_VelocityScale = MIDI_VELOCITY_SCALING_DX7II; m_VelocityScale = MIDI_VELOCITY_SCALING_DX7II;
} else { } else {
m_VelocityScale = MIDI_VELOCITY_SCALING_OFF; m_VelocityScale = MIDI_VELOCITY_SCALING_OFF;

@ -10,8 +10,8 @@ SampleRate=48000
#ChunkSize=256 #ChunkSize=256
DACI2CAddress=0 DACI2CAddress=0
ChannelsSwapped=0 ChannelsSwapped=0
# VelocityScale: 0=OFF 1=DX7 2=DX7II # VelocityScale ( 0=OFF ; 1=DX7 ; 2=DX7II )
VelocityScale=0 VelocityScale=0
# MIDI # MIDI
MIDIBaudRate=31250 MIDIBaudRate=31250

Loading…
Cancel
Save