Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/MiniDexed/commit/e3df1dcdbd524af2be934c7b2a57f8c35fb0a0ca?style=split&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
16 additions and
10 deletions
src/config.cpp
src/config.h
src/mididevice.cpp
src/minidexed.ini
@ -68,6 +68,9 @@ void CConfig::Load (void)
}
}
}
}
m_bMIDIRXProgramChange = m_Properties . GetNumber ( " MIDIRXProgramChange " , 1 ) ! = 0 ;
m_bLCDEnabled = m_Properties . GetNumber ( " LCDEnabled " , 0 ) ! = 0 ;
m_bLCDEnabled = m_Properties . GetNumber ( " LCDEnabled " , 0 ) ! = 0 ;
m_nLCDPinEnable = m_Properties . GetNumber ( " LCDPinEnable " , 17 ) ;
m_nLCDPinEnable = m_Properties . GetNumber ( " LCDPinEnable " , 17 ) ;
m_nLCDPinRegisterSelect = m_Properties . GetNumber ( " LCDPinRegisterSelect " , 27 ) ;
m_nLCDPinRegisterSelect = m_Properties . GetNumber ( " LCDPinRegisterSelect " , 27 ) ;
@ -126,6 +129,11 @@ const char *CConfig::GetMIDIThruOut (void) const
return m_MIDIThruOut . c_str ( ) ;
return m_MIDIThruOut . c_str ( ) ;
}
}
bool CConfig : : GetMIDIRXProgramChange ( void ) const
{
return m_bMIDIRXProgramChange ;
}
bool CConfig : : GetLCDEnabled ( void ) const
bool CConfig : : GetLCDEnabled ( void ) const
{
{
return m_bLCDEnabled ;
return m_bLCDEnabled ;
@ -73,6 +73,8 @@ public:
unsigned GetMIDIBaudRate ( void ) const ;
unsigned GetMIDIBaudRate ( void ) const ;
const char * GetMIDIThruIn ( void ) const ; // "" if not specified
const char * GetMIDIThruIn ( void ) const ; // "" if not specified
const char * GetMIDIThruOut ( void ) const ; // "" if not specified
const char * GetMIDIThruOut ( void ) const ; // "" if not specified
bool GetMIDIRXProgramChange ( void ) const ; // true if not specified
// HD44780 LCD
// HD44780 LCD
// GPIO pin numbers are chip numbers, not header positions
// GPIO pin numbers are chip numbers, not header positions
@ -108,6 +110,7 @@ private:
unsigned m_nMIDIBaudRate ;
unsigned m_nMIDIBaudRate ;
std : : string m_MIDIThruIn ;
std : : string m_MIDIThruIn ;
std : : string m_MIDIThruOut ;
std : : string m_MIDIThruOut ;
bool m_bMIDIRXProgramChange ;
bool m_bLCDEnabled ;
bool m_bLCDEnabled ;
unsigned m_nLCDPinEnable ;
unsigned m_nLCDPinEnable ;
@ -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 : {
@ -14,6 +14,7 @@ ChannelsSwapped=0
# MIDI
# MIDI
MIDIBaudRate = 31250
MIDIBaudRate = 31250
#MIDIThru=umidi1,ttyS1
#MIDIThru=umidi1,ttyS1
MIDIRXProgramChange = 1
# HD44780 LCD
# HD44780 LCD
LCDEnabled = 1
LCDEnabled = 1