From: Jan Nieuwenhuizen Date: Sat, 12 Mar 2011 21:17:24 +0000 (+0100) Subject: Midi: thinkos. Fix wrapping of channels. X-Git-Tag: release/2.13.54-1~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=142ef64be83a18cad0b86bfacc1f7b0140ad217b;p=lilypond.git Midi: thinkos. Fix wrapping of channels. --- diff --git a/lily/staff-performer.cc b/lily/staff-performer.cc index 3fc26fa456..7239e58d4e 100644 --- a/lily/staff-performer.cc +++ b/lily/staff-performer.cc @@ -184,8 +184,6 @@ Staff_performer::finalize () { staff_map_.clear (); channel_map_.clear (); - channel_count_ = 0; - static_channel_map_.clear (); } string @@ -223,7 +221,10 @@ Staff_performer::get_channel (string instrument) /* MIDI players tend to ignore instrument settings on channel 10, the percussion channel. */ if (channel % 16 == 9) - channel_map["percussion"] = channel++; + { + channel_map["percussion"] = channel++; + channel_count_++; + } if (channel > 15) {