[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing the text of a TimeSignature
From: |
David Kastrup |
Subject: |
Re: Changing the text of a TimeSignature |
Date: |
Fri, 05 Jun 2020 16:07:29 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Paolo Prete <paolopr976@gmail.com> writes:
> Hello,
>
> Is there a way to change displayed text in the TimeSignature's fraction,
> without changing the effective value?
>
> for example, if I have
>
> { \time 3/4 c' c' c' }
>
> I would like to display "Foo / Bar" instead of "3 / 4", while preserving
> the inner 3/4 structure.
>
> Thanks!
Something like
\new Staff
{ \tweak text \markup \vcenter \override #'(baseline-skip . 2)
\bold \center-column { "Foo" "Bar" }
\tweak stencil #ly:text-interface::print
\time 3/4 c' c' c' }
Note that for \time to take tweaks, its containing Staff context needs
to exist before \time is called, so this will not work without the \new
Staff or anything else before \time that would cause a Staff to exist.
--
David Kastrup