1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
6 lsrtags
= "contexts-and-engravers, midi"
9 When outputting MIDI, the default behavior is for each staff to
10 represent one MIDI channel, with all the voices on a staff amalgamated.
11 This minimizes the risk of running out of MIDI channels, since there
12 are only 16 available per track.
14 However, by moving the @code{Staff_performer} to the @code{Voice}
15 context, each voice on a staff can have its own MIDI channel, as is
16 demonstrated by the following example: despite being on the same staff,
17 two MIDI channels are created, each with a different
18 @code{midiInstrument}.
21 doctitle
= "Changing MIDI output to one channel per voice"
25 \new Voice
\relative c''' {
26 \set midiInstrument
= #"flute"
35 \new Voice
\relative c'' {
36 \set midiInstrument
= #"clarinet"
48 \remove "Staff_performer"
52 \consists "Staff_performer"
56 tempoWholesPerMinute
= #(ly
:make-moment
72 2)