- Hu Haipeng writes:
The patch below may fix this, when using
\set Score.midiChannelMapping = #'staff
Ok, Here's my example, just 4 bars.
It is indeed just 4 bars. Although I can look at the warning,
this example is not usable as a regtest or tiny example. It
is still quite difficult [for me] to verify that what is meant
in this .ly, actually arrives into the .midi.
Possibly with something like
violin = { \set Staff.midiInstrument = "violin" a4 a }
changer = {
\set Staff.midiInstrument = "midi-instr 1"
c128
\set Staff.midiInstrument = "midi-instr 2"
c128
..
\set Staff.midiInstrument = "midi-instr 17"
c128
\set Staff.midiInstrument = "celesta"
c4
}
it would be feasible to verify that, in the end, we hear a
violin and a celesta. Not sure how to make a better test
for this that could serve as a regtest.
Jan.