Time signature in parentheses - method 2: Difference between revisions
Appearance
Import snippet from LSR |
m New category |
||
| (2 intermediate revisions by 2 users not shown) | |||
| 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 | ||
| Line 30: | Line 30: | ||
[[Category:Contexts and engravers]] | [[Category:Contexts and engravers]] | ||
[[Category:Rhythms]] | [[Category:Rhythms]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:22, 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 }