Francisco Vila <paconet.org <at> gmail.com> writes:
> In this example, partB should include m.2 of partA in measure
> two.
[...]
> instrA = {
> \tag #'partA \cueDuring #"instrB" #UP { s1^"(from B)" }
> \tag #'sheetA { R1 }
> c'1^"Voice A m. 2"
> }
> \addQuote "instrA" { \instrA }
Lilypond sees *three* measures in addQuote, with the c' in measure three. She
does not yet know that you will keep only one tag.
Two approaches that have worked for me :
% (1) For scores that use \tags,
% put alternative music in a parallel construction
instrA = {
<<
\tag #'partA \cueDuring #"instrB" #DOWN { s1^"(from B)" }
R1 >>
c'1^"Voice A m. 2"
}
instrB = {
d'1^"Voice B m. 1"
<<
\tag #'partB \cueDuring #"instrA" #DOWN { R1^"(from A)" }
R1 >>
}
\addQuote "instrA" { \instrA }
\addQuote "instrB" { \instrB }
\new Staff \with { instrumentName = "part A" }
\new Voice \instrA
\new Staff \with { instrumentName = "part B" }
\new Voice \instrB
\new StaffGroup \with { instrumentName = "Sheet" } <<
\new Staff \with { instrumentName = "A" }
\killCues \keepWithTag #'sheet \instrA
\new Staff \with { instrumentName = "B" }
\killCues \keepWithTag #'sheet \instrB
%{%}>>
% (2) \killCues removes the cue notes
% but not the "from B" labels
%
instrA = {
\cueDuring #"instrB" #DOWN { s1*0_"(from B)" R1 }
c'1^"Voice A m. 2"
}
instrB = {
d'1^"Voice B m. 1"
\cueDuring #"instrA" #DOWN { s1*0^"(from A)" R1}
}
\addQuote "instrA" { \instrA }
\addQuote "instrB" { \instrB }
\new Staff \with { instrumentName = "part A" }
\new Voice \instrA
\new Staff \with { instrumentName = "part B" }
\new Voice \instrB
\new StaffGroup \with { instrumentName = "Sheet" } <<
\new Staff \with { instrumentName = "A" }
\killCues \instrA
\new Staff \with { instrumentName = "B" }
\killCues \instrB
>>
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user