[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing and playing a different instrument in MIDI
From: |
Noeck |
Subject: |
Re: Changing and playing a different instrument in MIDI |
Date: |
Fri, 22 Jul 2016 13:32:26 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
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