diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-06-23 12:41:12 +0200 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-06-23 12:41:12 +0200 |
commit | 60fa4f03f30553fc5440c0934cc1b7406094526c (patch) | |
tree | 4b3249f45fb3da6a70c7a522b9a603c88f362d7b /src/adlmidi_midiplay.cpp | |
parent | efbbd382b84b73d706a16fb54c51bf48df7b22cf (diff) | |
download | libADLMIDI-60fa4f03f30553fc5440c0934cc1b7406094526c.tar.gz libADLMIDI-60fa4f03f30553fc5440c0934cc1b7406094526c.tar.bz2 libADLMIDI-60fa4f03f30553fc5440c0934cc1b7406094526c.zip |
glide: handle for all the midi channels
Diffstat (limited to 'src/adlmidi_midiplay.cpp')
-rw-r--r-- | src/adlmidi_midiplay.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index a044859..b2497ca 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -1632,7 +1632,9 @@ retry_arpeggio: void MIDIplay::UpdateGlide(double amount) { - for(unsigned channel = 0; channel < 16; ++channel) + unsigned num_channels = Ch.size(); + + for(unsigned channel = 0; channel < num_channels; ++channel) { MIDIchannel &midiChan = Ch[channel]; if(midiChan.gliding_note_count == 0) |