Time signature with note in denominator: Difference between revisions
Appearance
Import snippet from LSR |
m New category Tags: Mobile edit Mobile web edit |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
To change the time signature from 3/2 to 3/(half note), override the <code>'stencil</code> property to allow markup. | To change the time signature from 3/2 to 3/(half note), override the <code>'stencil</code> property to allow markup. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
%% %% http://lsr.di.unimi.it/LSR/Item?id=554 | %% %% http://lsr.di.unimi.it/LSR/Item?id=554 | ||
%% see also http://lsr.di.unimi.it/LSR/Item?id=642 | %% see also http://lsr.di.unimi.it/LSR/Item?id=642 | ||
| Line 22: | Line 22: | ||
[[Category:Staff notation]] | [[Category:Staff notation]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:22, 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.
}