I'm running into problems with cue notes when the quoted voice has a section 
of parallel notes somewhere in the piece. 

E.g.
quoteMeII = \relative c' { c4 c c c | 
    << 
      { \voiceTwo c2 } 
      \new CueVoice { \voiceOne \parenthesize g'2 } 
    >> } r
\addQuote quoteMeII \quoteMeII
\relative c'' {
    c4 \cueDuring #"quoteMeII" #DOWN { r2 } c4 | c1 |
}

Here you would expect that during the r2 the two c'4 from \quoteMeII are 
quoted. But actually, no cue notes are shown.

Apparently, if a \new *Voice is created anywhere in the quoted voice, 
\cueDuring will only recognize the contents of the LAST created voice. In 
particular, here only the notes from the \new CueVoice will be used!

Sample file is attached, showing this behavior.

I regard this as a bug in our cueDuring/quoteDuring functionality.

Does anyone know a proper fix for this? I'm under some time pressure, as I 
need to send the final score to my customer as soon as possible...


Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
\pointAndClickOff
\header {
  title = "Cue notes don't work if quoted voice has a subvoice"
}
\paper { indent = 5\cm }

\version "2.13.29"

% Adding cue notes works if the quoted voice has no sub-voice
quoteMeI = \relative c' { c4 c c c | c2 r | }
\addQuote quoteMeI \quoteMeI
originalI = \relative c'' {
  c4 \cueDuring #"quoteMeI" #DOWN { r2 } c4 | c1 |
}


% Adding cue notes breaks if the quoted voice creates a sub-voice
quoteMeII = \relative c' { c4 c c c | 
  <<
    { \voiceTwo c2 \oneVoice } 
    \new CueVoice { \voiceOne \parenthesize g'2 } 
  >> r2
}
\addQuote quoteMeII \quoteMeII
originalII = \relative c'' {
  c4 \cueDuring #"quoteMeII" #DOWN { r2 } c4 | c1 |
}


<<
  \new Staff \with { instrumentName = "Working quoted" } { \quoteMeI }
  \new Staff \with { instrumentName = "Working quoting" } { \originalI }

  \new Staff \with { instrumentName = "Not working quoted" } { \quoteMeII }
  \new Staff \with { instrumentName = "Not working quoting" } { \originalII }
  
  \new Staff \with { instrumentName = "which voice quoted?" } { \new Voice {\quoteDuring #"quoteMeII" { s1*2 } }}

>>

Attachment: Quoting-voice-with-subvoice.pdf
Description: Adobe PDF document

_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to