[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue 645 in lilypond: midiInstrument + \transposition + \partcombin
From: |
Keith E OHara |
Subject: |
Re: Issue 645 in lilypond: midiInstrument + \transposition + \partcombine = wrong MIDI output |
Date: |
Tue, 12 Oct 2010 20:20:16 -0700 |
User-agent: |
Opera Mail/10.62 (Win32) |
On Fri, 01 Oct 2010 16:26:17 -0700, <address@hidden> wrote:
% A workaround for issue 645
\version "2.12.3"
flute = {c''1 \cueDuring "horn2" #DOWN {c''}}
hornI = {
% Begin with horn in C
c'1
% Switch to horn in F.
% For use in parts, especially cue notes,
% let transposition affect the default staff.
\tag #'part \transposition f
% For use in the score, refer explicitly to the "horn" staff
% to avoid changing MIDI transposition of other staves.
\tag #'score \context Staff="horn" \transposition f
g'2^"in F" b'2
}
hornII = {
c'1
\tag #'part \transposition f
\tag #'score \context Staff="horn" \transposition f
g'2^"in F" d'2
}
\score {
\keepWithTag #'score <<
\new Staff="flute" \flute
% Similar horns can share a staff
\new Staff="horn" \partcombine \hornI \hornII
%{%}>>
\layout{}
\midi{}
}
% We must not refer to the "horn" staff when we quote music
% in places where a "horn" staff might not exist.
% (Doing so crashes version 2.12.3)
\addQuote "horn2" \keepWithTag #'part \hornII
\score {
\keepWithTag #'part \flute
}
\score {
\keepWithTag #'part \hornI
}
\score {
\keepWithTag #'part \hornII
}