lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cue mutually?


From: Keith OHara
Subject: Re: Cue mutually?
Date: Thu, 3 Mar 2011 17:33:25 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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
>>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]