lilypond-user
[Top][All Lists]
Advanced

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

Re: attaching markup to time signature


From: David Kastrup
Subject: Re: attaching markup to time signature
Date: Thu, 12 Apr 2018 22:29:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Kieren MacMillan <address@hidden> writes:

> Hi Werner,
>
>> This is the solution I will use, since David's solution doesn't really
>> work for me: As the attached image for this snippet shows,
>> the staff line gets enlarged horizontally to the left.  Using the
>> baloon stuff, the text properly sticks out.
>
> What about
>
>  \new Staff
>  {
>    \tweak stencil
>      #(grob-transformer 'stencil
>        (lambda (grob default)
>          (grob-interpret-markup grob
>           #{ \markup \with-dimensions-from "a" \column {
>                \stencil #default
>                \vspace #-2.5
>                \center-align "This is a long, centered text" } #})))
>    \time 2/4 c'1
>  }
>
> Hope that helps!

Uh, I think the balloon version is a whole lot more appropriate for that
use case and cleaner anyway.  I just couldn't be bothered looking up its
usage.

-- 
David Kastrup



reply via email to

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