From 142ef64be83a18cad0b86bfacc1f7b0140ad217b Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sat, 12 Mar 2011 22:17:24 +0100 Subject: [PATCH] Midi: thinkos. Fix wrapping of channels. --- lily/staff-performer.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) { -- 2.39.2