[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Markings on a percent bar
From: |
David Kastrup |
Subject: |
Re: Markings on a percent bar |
Date: |
Thu, 23 Nov 2017 18:17:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Wols Lists <address@hidden> 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
Re: Markings on a percent bar, Simon Albrecht, 2017/11/23