1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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 track.
18 However, by moving the @code{Staff_performer} to the @code{Voice}
19 context, each voice on a staff can have its own MIDI channel, as is
20 demonstrated by the following example: despite being on the same staff,
21 two MIDI channels are created, each with a different
22 @code{midiInstrument}.
25 doctitle = "Changing MIDI output to one channel per voice"
30 \new Voice \relative c''' {
31 \set midiInstrument = #"flute"
40 \new Voice \relative c'' {
41 \set midiInstrument = #"clarinet"
53 \remove "Staff_performer"
57 \consists "Staff_performer"