Jump to content

Combining dynamics with markup texts (2): Difference between revisions

From LilyPond wiki
Created page with "Some dynamics may involve text indications (such as “più ''f''” or “''p'' subito”). These can be produced using the <code>make-dynamic-script</code> Scheme function; the resulting object behaves like a <code>DynamicText</code> grob. See also Combining dynamics with markup texts. <lilypond version="2.24"> piuF = #(make-dynamic-script #{ \markup { \normal-text \italic più \dynamic f } #}) \markup \with-true-dimensions % work around a cropping iss..."
 
mNo edit summary
 
Line 7: Line 7:
           #{ \markup { \normal-text \italic più \dynamic f } #})
           #{ \markup { \normal-text \italic più \dynamic f } #})


\markup \with-true-dimensions % work around a cropping issue
\score {
\score {
   \relative c'' {
   \relative c'' {

Latest revision as of 07:45, 28 December 2025

Some dynamics may involve text indications (such as “più f” or “p subito”). These can be produced using the make-dynamic-script Scheme function; the resulting object behaves like a DynamicText grob.

See also Combining dynamics with markup texts.

\version "2.24"

piuF = #(make-dynamic-script
          #{ \markup { \normal-text \italic più \dynamic f } #})

\score {
  \relative c'' {
    c2\f c\piuF
  }
}