Previous: Dynamics, Up: Attached to notes


New dynamic marks

The easiest way to create dynamic indications is to use \markup objects.

     
     moltoF = \markup { molto \dynamic f }
     
     \relative c' {
       <d e>16_\moltoF <d e>
       <d e>2..
     }

[image of music]

In markup mode, editorial dynamics (within parentheses or square brackets) can be created. The syntax for markup mode is described in Formatting text.

     
     roundF = \markup { \center-align \concat { \bold { \italic ( }
                \dynamic f \bold { \italic ) } } }
     boxF = \markup { \bracket { \dynamic f } }
     \relative c' {
       c1_\roundF
       c1_\boxF
     }

[image of music]

Simple, centered dynamic marks are easily created with the make-dynamic-script function. The dynamic font only contains the characters f,m,p,r,s and z.

     
     sfzp = #(make-dynamic-script "sfzp")
     \relative c' {
       c4 c c\sfzp c
     }

[image of music]

In general, make-dynamic-script takes any markup object as its argument. In the following example, using make-dynamic-script ensures the vertical alignment of markup objects and hairpins that are attached to the same note head.

     
     roundF = \markup { \center-align \concat {
                \normal-text { \bold { \italic ( } }
                \dynamic f
                \normal-text { \bold { \italic ) } } } }
     boxF = \markup { \bracket { \dynamic f } }
     roundFdynamic = #(make-dynamic-script roundF)
     boxFdynamic = #(make-dynamic-script boxF)
     \relative c' {
       c4_\roundFdynamic\< d e f
       g,1_\boxFdynamic
     }

[image of music]

The Scheme form of markup mode may be used instead. Its syntax is explained in Markup construction in Scheme.

     
     moltoF = #(make-dynamic-script
                 (markup #:normal-text "molto"
                         #:dynamic "f"))
     \relative c' {
       <d e>16 <d e>
       <d e>2..\moltoF
     }

[image of music]

Font settings in markup mode are described in Selecting font and font size.

See also

Notation Reference: Formatting text, Selecting font and font size, Markup construction in Scheme, What goes into the MIDI output?, Controlling MIDI dynamics.

Snippets: Expressive marks.

This page is for LilyPond-2.11.58 (development-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Your suggestions for the documentation are welcome.

Other languages: français, español.