Jump to content

Changing the tuplet number: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
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
Line 3: Line 3:
Alternatively, ''num'':''den'' of the tuplet number may be printed, or the tuplet number may be suppressed altogether.
Alternatively, ''num'':''den'' of the tuplet number may be printed, or the tuplet number may be suppressed altogether.


<lilypond version="2.24.0">
<lilypond version="2.24">
\relative c'' {
\relative c'' {
   \tuplet 3/2 { c8 c c }
   \tuplet 3/2 { c8 c c }

Revision as of 18:55, 16 November 2025

By default, only the numerator of the tuplet number is printed over the tuplet bracket, i.e., the numerator of the argument to the \tuplet command.

Alternatively, num:den of the tuplet number may be printed, or the tuplet number may be suppressed altogether.

\version "2.24"

\relative c'' {
  \tuplet 3/2 { c8 c c }
  \tuplet 3/2 { c8 c c }
  \override TupletNumber.text = #tuplet-number::calc-fraction-text
  \tuplet 3/2 { c8 c c }
  \omit TupletNumber
  \tuplet 3/2 { c8 c c }
}