@ -208,15 +208,7 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
break ;
break ;
case MIDI_CC_DETUNE_LEVEL :
case MIDI_CC_DETUNE_LEVEL :
if ( pMessage [ 2 ] = = 0 )
m_pSynthesizer - > SetMasterTune ( maplong ( pMessage [ 2 ] , 0 , 127 , - 99 , 99 ) , nTG ) ;
{
// "0 to 127, with 0 being no celeste (detune) effect applied at all."
m_pSynthesizer - > SetMasterTune ( 0 , nTG ) ;
}
else
{
m_pSynthesizer - > SetMasterTune ( maplong ( pMessage [ 2 ] , 1 , 127 , - 99 , 99 ) , nTG ) ;
}
break ;
break ;
case MIDI_CC_ALL_SOUND_OFF :
case MIDI_CC_ALL_SOUND_OFF :
@ -230,7 +222,9 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
break ;
break ;
case MIDI_PROGRAM_CHANGE :
case MIDI_PROGRAM_CHANGE :
m_pSynthesizer - > ProgramChange ( pMessage [ 1 ] , nTG ) ;
// do program change only if enabled in config
if ( m_pConfig - > GetMIDIRXProgramChange ( ) )
m_pSynthesizer - > ProgramChange ( pMessage [ 1 ] , nTG ) ;
break ;
break ;
case MIDI_PITCH_BEND : {
case MIDI_PITCH_BEND : {