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 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user