Jump to content

Time signature with note in denominator: 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
No edit summary
Line 21: Line 21:


[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]][[Category:Snippet]]

Revision as of 23:01, 21 November 2025

To change the time signature from 3/2 to 3/(half note), override the 'stencil property to allow markup.

\version "2.24"

%% %% http://lsr.di.unimi.it/LSR/Item?id=554
%% see also http://lsr.di.unimi.it/LSR/Item?id=642

tsMarkup = \markup {
  \override #'(baseline-skip . 0.5)
  \column { \number 3 \note {2} #-1 }
}

\relative c' {
  \override Staff.TimeSignature.style = #'default
  \override Staff.TimeSignature.stencil = #(lambda (grob)
    (grob-interpret-markup grob tsMarkup))
  \time 3/2
  c2 d4 e f2
  g1.
}