lilypond-user
[Top][All Lists]
Advanced

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

Strange behaviour of 2.18's snippets \cueWhile


From: Jacques Menu
Subject: Strange behaviour of 2.18's snippets \cueWhile
Date: Fri, 21 Feb 2014 17:15:59 +0100

Hello Folks,

I ran into this problem, in which \cueWhile fails to display the notes inside a repeat block:



Any hint is welcome!

JM

PS> I just changed mail address, and re-subscribed to lilypond-user with the new one.


\version "2.18.1"


%%% FIRST PART IS TAKEN FROM THE 2.18 SNIPPETS


cueWhile =
#(define-music-function
(parser location instrument name dir music)
(string? string? ly:dir? ly:music?)
#{
\cueDuring $instrument #dir {
\once \override TextScript.self-alignment-X = #RIGHT
\once \override TextScript.direction = $dir
<>-\markup { \tiny #name }
$music
} #})

flute = \relative c'' {
\transposition c'
s4 s4 e g
}
\addQuote "flute" { \flute }

clarinet = \relative c' {
\transposition bes
fis4 d d c
}
\addQuote "clarinet" { \clarinet }

singer = \relative c'' { c4. g8 g4 bes4 }
words = \lyricmode { here's the lyr -- ics }

pianoRH = \relative c'' {
\transposition c'
\cueWhile "clarinet" "Clar." #DOWN { c4. g8 }
\cueWhile "flute" "Flute" #UP { g4 bes4 }
}
pianoLH = \relative c { c4 <c' e> e, <g c> }


\score { <<
\new PianoStaff <<
\new Staff {
\new Voice {
  \pianoRH
} }
>>
>>
}



%%% PROBLEM SPECIFIC PART STARTS HERE

\score { <<
\new PianoStaff <<
\new Staff {
\new Voice {
  \pianoRH
  \repeat volta 2 {
    \pianoRH
}
} }
>>
>>
}



reply via email to

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