diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-22 03:35:06 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-22 03:36:51 +0300 |
commit | 6e38a3b9b6a408683aa42d68281b35ad9b9b39b2 (patch) | |
tree | 41b44d10825efbf4f58cebcd1582b987695974e8 | |
parent | 8917fd60694ef2a0757d6e250faea37482b34956 (diff) | |
download | libADLMIDI-6e38a3b9b6a408683aa42d68281b35ad9b9b39b2.tar.gz libADLMIDI-6e38a3b9b6a408683aa42d68281b35ad9b9b39b2.tar.bz2 libADLMIDI-6e38a3b9b6a408683aa42d68281b35ad9b9b39b2.zip |
Portamento must use previously played note in a channel like S-YXG50 does
-rw-r--r-- | src/adlmidi_midiplay.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index f539b16..56078fb 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -477,7 +477,8 @@ bool MIDIplay::realTime_NoteOn(uint8_t channel, uint8_t note, uint8_t velocity) midiChan.portamentoEnable && currentPortamentoRate != HUGE_VAL && !isPercussion && !isXgPercussion; // Record the last note on MIDI channel as source of portamento - midiChan.portamentoSource = portamentoEnable ? (int8_t)note : (int8_t)-1; + midiChan.portamentoSource = static_cast<int8_t>(note); + // midiChan.portamentoSource = portamentoEnable ? (int8_t)note : (int8_t)-1; // Enable gliding on portamento note if (portamentoEnable && currentPortamentoSource >= 0) |