On 03/03/2011 05:37 PM, Francisco Vila wrote:
2011/3/3 Francisco Vila<paconet....@gmail.com>:
Thank you Reinhold, that works, however, still some kind of problem
remains. In this example, partB should include m.2 of partA in measure
two. Maybe I mistyped something... sorry if this looks complicated,
actually it _is_ a minimal example of what I want, a simple ensemble
score with rests and parts which cue each other.
instrA = {
\tag #'partA \cueDuring #"instrB" #UP { s1^"(from B)" }
\tag #'sheetA { R1 }
To avoid nameclash, here I put different names for A and B but
actually it works the same (i.e. it doesn't) if I change every partA
and partB to "parts" and sheetA or sheetB to "sheet" so I only have
two tags, 'parts and 'sheet.
Any ideas?
quick and dirty:
%%%
instrA = {
\tag #'partA \cueDuring #"instrB" #UP { s1^"(from B)" }
\tag #'sheetA { R1 }
c'1^"Voice A m. 2"
}
\addQuote "instrA" { \keepWithTag #'partA { \instrA }}
instrB = {
d'1^"Voice B m. 1"
\tag #'partB \cueDuring #"instrA" #DOWN { s1^"(from A)" }
\tag #'sheetB { R1 }
}
\addQuote "instrB" { \keepWithTag #'partA { \instrB }}
\score {
<<
\new Staff \with { instrumentName = "part A" }
\new Voice { \keepWithTag #'partA \instrA }
\new Staff \with { instrumentName = "part B" }
\new Voice { \keepWithTag #'partB \instrB }
>>
}
%%%
To avoid redundant \keepWithTag commands I work with different *.ly
files for scores/parts and include the music, i.e.:
\music = \keepWithTag #'parts \music
\addQuote "music" { \music }
This is my (very foolish?) approach to avoid "cue-nesting"
Regards,
Bernhard
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user