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:48:42 +0300 |
commit | 0c2956ec4ca6ded0afc8a0229e7157bd5862cc00 (patch) | |
tree | 581de3127f50dc8555997a431febb59ba79ecfb8 | |
parent | 94dba775b234a57ad45dabf77200d305c94d7bf0 (diff) | |
download | libADLMIDI-0c2956ec4ca6ded0afc8a0229e7157bd5862cc00.tar.gz libADLMIDI-0c2956ec4ca6ded0afc8a0229e7157bd5862cc00.tar.bz2 libADLMIDI-0c2956ec4ca6ded0afc8a0229e7157bd5862cc00.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 2f186a6..24d8ed0 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -1230,7 +1230,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) |