Skip to content

Commit 8f2c638

Browse files
authored
Merge pull request #966 from soyersoyer/nobank
midi: remove the BANK typo from MIDI_CC_BANK_SUSTAIN
2 parents 1fa9e56 + c3132de commit 8f2c638

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/midi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#define MIDI_CC_PAN_POSITION 10
3636
#define MIDI_CC_EXPRESSION 11
3737
#define MIDI_CC_BANK_SELECT_LSB 32
38-
#define MIDI_CC_BANK_SUSTAIN 64
38+
#define MIDI_CC_SUSTAIN 64
3939
#define MIDI_CC_PORTAMENTO 65
4040
#define MIDI_CC_SOSTENUTO 66
4141
#define MIDI_CC_HOLD2 69

src/mididevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
548548
m_pSynthesizer->BankSelectLSB (pMessage[2], nTG);
549549
break;
550550

551-
case MIDI_CC_BANK_SUSTAIN:
551+
case MIDI_CC_SUSTAIN:
552552
m_pSynthesizer->setSustain (pMessage[2] >= 64, nTG);
553553
break;
554554

0 commit comments

Comments
 (0)