Jump to content

Time signature in parentheses: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Enclose the time signature in parentheses.
The time signature can be enclosed within parentheses.


<lilypond version="2.24.0">
<lilypond version="2.24">
\relative c'' {
\relative c'' {
   \override Staff.TimeSignature.stencil = #(lambda (grob)
   \override Staff.TimeSignature.stencil = #(lambda (grob)
Line 10: Line 10:
</lilypond>
</lilypond>


[[Category:Rhythms]]
[[Category:Specific notation]]
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Specific notation]]
[[Category:Snippet]]
[[Category:Rhythms]]

Latest revision as of 06:36, 11 December 2025

The time signature can be enclosed within parentheses.

\version "2.24"

\relative c'' {
  \override Staff.TimeSignature.stencil = #(lambda (grob)
    (parenthesize-stencil (ly:time-signature::print grob) 0.1 0.4 0.4 0.1))
  \time 2/4
  a4 b8 c
}