summaryrefslogtreecommitdiff
path: root/lily/audio-staff.cc
diff options
context:
space:
mode:
authorJan Nieuwenhuizen <janneke@gnu.org>2011-03-14 10:08:06 +0100
committerJan Nieuwenhuizen <janneke@gnu.org>2011-03-14 10:08:21 +0100
commit1dbfe58548c0dbea3a09c94eb03113aaaaa73c75 (patch)
treefbff1b6a8e57e9169842f286d9dd6789f218dd0c /lily/audio-staff.cc
parentbdaa25bf09f060e631c5fa088ca4987f60707b8a (diff)
Midi: only output PORT if midiChannelMapping == #'voice.
This reduces the risk of creating trouble for the default #'instrument-mode output and the old #'staff-mode output, while leaving the option open for MIDI-players to do the right thing with ports in the #'voice-mode: in each track, each channel 0 should be able to play another instrument.
Diffstat (limited to 'lily/audio-staff.cc')
-rw-r--r--lily/audio-staff.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lily/audio-staff.cc b/lily/audio-staff.cc
index 8de47bf9de..d40220ca1c 100644
--- a/lily/audio-staff.cc
+++ b/lily/audio-staff.cc
@@ -35,9 +35,9 @@ Audio_staff::Audio_staff ()
}
void
-Audio_staff::output (Midi_stream &midi_stream, int track)
+Audio_staff::output (Midi_stream &midi_stream, int track, bool port)
{
- Midi_track midi_track (track);
+ Midi_track midi_track (track, port);
Midi_walker i (this, &midi_track);
for (; i.ok (); i++)