On Fri, 01 Oct 2010 16:26:17 -0700, <[email protected]> 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
}
_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond