I'm typesetting a piece which has circular rehearsal marks.
That's easy enough to achieve in lilypond with
\set Score.rehearsalMarkFormatter = #format-mark-circle-numbers
However, later in the score, the numbers get big and that causes the circle radius to become comically large.
Lilypond's notation reference suggests looking to scm/translation-functions.scm
for inspiration, and in there I found format-mark-generic
accepts an oval
option. It helps with the vertical space, but it's still not pretty:
\set Score.rehearsalMarkFormatter = #(format-mark-generic '(numbers oval))
The original score deals with this by just using a box with a large-rounded corners. I'd like to use that same approach.
The closest I can get is by using \rounded-box
, but the corner-radius
seems to max-out at 2 and it would be nice if it was 1/2 the height of the box.
#(define (format-mark-roundbox-numbers number context)
#{ \markup \override #'(corner-radius . 2) \rounded-box #(format-mark-numbers number context) #})
\set Score.rehearsalMarkFormatter = #format-mark-roundbox-numbers