lilypond-user
[Top][All Lists]
Advanced

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

Re: parenthesized octave clef


From: Neil Puttock
Subject: Re: parenthesized octave clef
Date: Sun, 4 Jul 2010 21:41:51 +0100

On 4 July 2010 21:02, James Bailey <address@hidden> wrote:
> I'm trying to figure out how to get a parenthesized "8" on a clef. Here's my
> best solution, clearly not ideal, but it will do in a pinch. I just have to
> figure out how to get the 8 right size and slant. I may end up doing away
> with the cuationary clef so I would only need the one size, but any help on
> how to make this look better would be very appreciated.

This is a bit kludgier than you'd expect, since you can't override
OctavateEight #'text (the Clef_engraver sets it, so user override
isn't possible):

\override Staff.OctavateEight #'stencil =
#(lambda (grob)
   (grob-interpret-markup grob
    ;; #:parenthesize also works in 2.13 (though not italic)
    (markup #:concat ("(" #:general-align Y DOWN #:stencil
(ly:text-interface::print grob) ")"))))

Cheers,
Neil



reply via email to

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