Fixing overlapping notation - GNU LilyPond
Description: GNU LilyPond

Next: Common tweaks, Previous: Moving objects, Up: Tweaking output

### 5.2 Fixing overlapping notation

In Moving objects, we saw how to move a `TextScript` object. The same mechanism can be used to move other types of objects; simply replace `TextScript` with the name of another object.

To find the object name, look at the “see also” at bottom of the relevant documentation page. For example, at the bottom of Dynamics, we see

> ##### See also

> Program reference: DynamicText, Hairpin. Vertical positioning of these symbols is handled by DynamicLineSpanner.

So to move dynamics around vertically, we use

    \override DynamicLineSpanner #'padding = #2.0

We cannot list every object, but here is a list of the most common objects.

Object type | Object name
--- | ---
Dynamics (vertically) | `DynamicLineSpanner`
Dynamics (horizontally) | `DynamicText`
Ties | `Tie`
Slurs | `Slur`
Articulations | `Script`
Fingerings | `Fingering`
Text e.g. `^"text"` | `TextScript`
Rehearsal / Text marks | `RehearsalMark`

Next: Common tweaks, Previous: Moving objects, Up: Tweaking output

This page is for LilyPond-2.10.33 (stable-branch).