Wols Lists <[email protected]> writes:
> This is actually very common in my sort of music. As you can see, I have
> a "\repeat percent 4 {}", and I have both a crescendo starting on the
> fourth bar, plus the number "4" above it.
>
> And I don't know where to start trying to enter this ... :-)
>
> That "4" is actually a simple example of a common construct - it means
> the fourth repeated bar. If I had had six bars, it might have had "4",
> "5", "6" - it always starts counting at the first bar, but usually only
> prints the count starting some way in (as here, with 4). It's also very
> commonly used when you have cue parts, the player may have 16 or more
> bars rest with cues.
>
> Can anybody give me any hints?
I really hate it when people don't even _try_ entering a single note
themselves and leave all the work to every single reader.
That being said, you could use something like
visibleAfter =
#(define-music-function (n mus) (index? ly:music?)
#{
\set Staff.countPercentRepeats = ##t
\set Staff.repeatCountVisibility =
#(lambda (cur ctx) (>= cur n))
#mus
\unset Staff.repeatCountVisibility
\unset Staff.countPercentRepeats
#})
\new Staff
{
\time 6/8
<< \visibleAfter 4 \repeat percent 4 { <d'' g''>8[ r q] q[ r q] }
{ \skip 8*6*3 <>\< \skip 8*6 <>\! }
>>
}
--
David Kastrup
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user