Previous: Layout interfaces, Up: Tuning output



4.3.5 Determining the grob property

Recall that we wanted to change the position of the 2 in

c-2
\stemUp
f

[image of music]

Since the 2 is vertically positioned next to its note, we have to meddle with the interface associated with this positioning. This is done using side-position-interface. The page for this interface says

side-position-interface

Position a victim object (this one) next to other objects (the support). The property direction signifies where to put the victim object relative to the support (left or right, up or down?)

below this description, the variable padding is described as

padding
(dimension, in staff space)

add this much extra space between objects that are next to each other.

By increasing the value of padding, we can move away the fingering. The following command inserts 3 staff spaces of white between the note and the fingering:

     \once \override Fingering #'padding = #3

Inserting this command before the Fingering object is created, i.e. before c2, yields the following result:

\once \override Fingering
    #'padding = #3
c-2
\stemUp
f

[image of music]

In this case, the context for this tweak is Voice , which does not have to be specified for \override. This fact can also be deduced from the program reference, for the page for the Fingering_engraver plug-in says

Fingering_engraver is part of contexts: ... Voice

Read comments on this page, or add one.

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

Report errors to <bug-lilypond@gnu.org>.