]> git.donarmstrong.com Git - lilypond.git/commitdiff
MIDI: midiChannelMapping = #'staff mode creates only one Track per staff.
authorJan Nieuwenhuizen <janneke@gnu.org>
Mon, 14 Mar 2011 14:18:48 +0000 (15:18 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Mon, 14 Mar 2011 14:19:04 +0000 (15:19 +0100)
This should reproduce the old behaviour.

lily/staff-performer.cc

index df2697060bff31ad56f5755870ab84ab96be1925..35b1746b8a36800a2db601a2c2d5cc6b16fd723a 100644 (file)
@@ -122,7 +122,7 @@ Audio_staff*
 Staff_performer::get_audio_staff (string voice)
 {
   SCM channel_mapping = get_property ("midiChannelMapping");
-  if (channel_mapping != ly_symbol2scm ("voice")
+  if (channel_mapping != ly_symbol2scm ("instrument")
       && staff_map_.size ())
     return staff_map_.begin ()->second;