Jump to content

User-defined time signatures: Difference between revisions

From LilyPond wiki
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
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
New time signature styles can be defined. The time signature in the second measure should be upside down in both staves.
New time signature styles can be defined. The time signature in the second measure is printed upside down in both staves.


<lilypond version="2.24">
<lilypond version="2.24">
Line 19: Line 19:


[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Scheme]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 19:32, 30 November 2025

New time signature styles can be defined. The time signature in the second measure is printed upside down in both staves.

\version "2.24"

#(add-simple-time-signature-style 'topsy-turvy
   (lambda (fraction)
     (make-rotate-markup 180 (make-compound-meter-markup fraction))))

<<
  \new Staff {
    \time 3/4 f'2.
    \override Score.TimeSignature.style = #'topsy-turvy
    \time 3/4 R2. \bar "|."
  }
  \new Staff {
    R2. e''
  }
>>