lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing and playing a different instrument in MIDI


From: Phil Holmes
Subject: Re: Changing and playing a different instrument in MIDI
Date: Fri, 22 Jul 2016 13:41:44 +0100

----- Original Message ----- From: "Noeck" <address@hidden>
To: <address@hidden>
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]