Jump to content

User-defined time signatures: Difference between revisions

From LilyPond wiki
m Lemzwerg moved page User defined time signatures to User-defined time signatures without leaving a redirect
mNo edit summary
 
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]]
[[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''
  }
>>