----- Original Message ----- From: "Noeck" <noeck.marb...@gmx.de>
To: <lilypond-user@gnu.org>
Sent: Friday, July 22, 2016 12:32 PM
Subject: Re: Changing and playing a different instrument in MIDI


Hi,

from the other replies I conclude that the Voice has no midiInstrument
and one cannot change the instrument inside the staff.

Or do you mean 'set' (once for the whole piece) by 'change'?

In both cases, if you want different instruments within the same staff,
you could make a separate midi score using the same music variables
which has more staves. Like (pseudocode):

\score { % for pdf
   staff << { voice1a voice1b }  voice2 >>
}

\score { % for midi
 <<
   staff { voice1a }  with midiInstrument = flute
   staff { s1*n  voice1b } with midiInstrument = accordion
   staff { voice2 } with midiInstrument = guitar
>>
}

HTH,
Joram

Probably better to follow the instructions in the snippet "Changing MIDI output to one channel per voice" in the NR.

--
Phil Holmes

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to