Time signature in parentheses - method 2: Difference between revisions
Appearance
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 |
No edit summary |
||
| Line 29: | Line 29: | ||
[[Category:Symbols and glyphs]] | [[Category:Symbols and glyphs]] | ||
[[Category:Contexts and engravers]] | [[Category:Contexts and engravers]] | ||
[[Category:Rhythms]] | [[Category:Rhythms]][[Category:Snippet]] | ||
Revision as of 23:01, 21 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 }