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 <d e>
       <d e>2.._\moltoF
     }

[image of music]

Markup mode makes possible, for instance, to add editorial dynamics, printed in round parenthesis or square brackets. Its syntax is described in Formatting text.

     
     roundf = \markup { \center-align { \line { \bold { \italic ( }
              \dynamic f \bold { \italic ) } } } }
     boxf = \markup { \bracket { \dynamic f } }
     \relative c' {
       c1_\roundf
       c1_\boxf
     }

[image of music]

Markup objects are treated differently from authentic dynamic marks. Defining dynamic objects that will be entered and printed exactly like standard dynamic marks is also possible, using the following function:

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

[image of music]

Note that the dynamic font only contains the characters f,m,p,r,s and z. To switch to other font families, it is necessary to use markup mode in its Scheme form, as 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 Common markup commands.

See also

Notation Reference: Formatting text, Common markup commands, Markup construction in Scheme.

Snippets: Expressive marks.


Previous: Dynamics, Up: Attached to notes

This page is for LilyPond-2.11.50 (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.
About automatic language selection.