Jump to content

Metric modulation with tuplet: 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 1: Line 1:
Where you have one tempo going to another tempo, and the second tempo has the pulse of a tuplet. This can be done with markup, using postscript inside. So you can use the sample markup template and adjust
Where you have one tempo going to another tempo, and the second tempo has the pulse of a tuplet. This can be done with markup, using postscript inside. So you can use the sample markup template and adjust


<lilypond version="2.24.0">
<lilypond version="2.24">
tupletToSixteenth =
tupletToSixteenth =
\markup {
\markup {

Revision as of 18:52, 16 November 2025

Where you have one tempo going to another tempo, and the second tempo has the pulse of a tuplet. This can be done with markup, using postscript inside. So you can use the sample markup template and adjust

\version "2.24"

tupletToSixteenth =
\markup {
    \hspace #-3.5 \vspace #8
    \concat {
      \postscript "-4 3 rmoveto 0 0.5 rlineto 1.5 0 rlineto 2 0 rmoveto 1.5 0 rlineto 0 -0.5 rlineto stroke"
      \hspace #-2 \raise #3 \normal-text \tiny \italic "3"
      \tiny \general-align #Y #DOWN \note {8} #1
      " = "
      \tiny \general-align #Y #DOWN \note {16} #1
    }
  }

\relative c' {
  \time 3/4
  e \tuplet 3/2 4 { e8 e e } e  e |
  \override Score.MetronomeMark.padding = 3
  \tempo \tupletToSixteenth
  \time 4/4
  \numericTimeSignature
  e16_> e e e_> e e e_> e e e_> e e e_> e e e_> |
}