Time signature in parentheses - method 2: Difference between revisions
Appearance
Import snippet from LSR |
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
||
| Line 1: | Line 1: | ||
Another way to put the time signature in parentheses. | Another way to put the time signature in parentheses. | ||
<lilypond version="2.24 | <lilypond version="2.24" full> | ||
%% http://lsr.di.unimi.it/LSR/Item?id=733 | %% http://lsr.di.unimi.it/LSR/Item?id=733 | ||
%% see also http://lsr.di.unimi.it/LSR/Item?id=169 | %% see also http://lsr.di.unimi.it/LSR/Item?id=169 | ||
Revision as of 18:52, 16 November 2025
Another way to put the time signature in parentheses.
\version "2.24"
%% http://lsr.di.unimi.it/LSR/Item?id=733
%% see also http://lsr.di.unimi.it/LSR/Item?id=169
%% see also http://lsr.di.unimi.it/LSR/Item?id=734
#(define ((parenthesize-time up down) grob)
(grob-interpret-markup grob
(markup #:override '(baseline-skip . 0) #:number
(#:line (
#:vcenter "("
(#:column (up down))
#:vcenter ")" )))))
\relative c'' {
\override Staff.TimeSignature.stencil = #(parenthesize-time "2" "4")
\time 2/4
a4 b8 c
}
\paper { tagline = ##f }