lilypond-user
[Top][All Lists]

## Typesetting tweak with percent repeat

 From: Evan Driscoll Subject: Typesetting tweak with percent repeat Date: Tue, 24 Apr 2018 22:19:14 -0500

Suppose I have a percent repeat. I'd like to place a bowing mark above it. (I realize this isn't strictly "correct" perhaps.) Is there a way to do that? My guess to the most promising approach is to use the \makePercent isolated repeat from http://lilypond.org/doc/v2.19/Documentation/notation/short-repeats, but I don't know how to get it to work.

For example, in the document below, I'd like an upbow over the percent in measure 2. How can I get that? The \upbow on the s1 that's in there now doesn't work.

Thanks,
Evan

\version "2.18.2"

makePercent =

#(define-music-function (parser location note) (ly:music?)

"Make a percent repeat the same length as NOTE."

(make-music 'PercentEvent

'length (ly:music-length note)))

cello = \relative c {

a4(\downbow b c d) |

\makePercent s1\upbow \bar "||"

}

\score {

\new Staff \with {

} { \clef bass \cello }

}