1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
6 %% This file is in the public domain.
10 lsrtags = "contexts-and-engravers, midi, real-music"
13 When outputting MIDI, the default behavior is for each staff to
14 represent one MIDI channel, with all the voices on a staff amalgamated.
15 This minimizes the risk of running out of MIDI channels, since there
16 are only 16 available per MIDI port, and most devices support only one
19 However, by moving the @code{Staff_performer} to the @code{Voice}
20 context, each voice on a staff can have its own MIDI channel, as is
21 demonstrated by the following example: despite being on the same staff,
22 two MIDI channels are created, each with a different
23 @code{midiInstrument}.
26 doctitle = "Changing MIDI output to one channel per voice"
32 \new Voice \relative c''' {
33 \set midiInstrument = #"flute"
42 \new Voice \relative c'' {
43 \set midiInstrument = #"clarinet"
55 \remove "Staff_performer"
59 \consists "Staff_performer"