Tweaking grace layout within music

The appearance of grace expressions can be changed by using the functions add-grace-property and remove-grace-property.

The following example undefines the direction property of Stem grobs for this grace so that stems do not always point up, and changes the default note heads to crosses.

\relative c'' {
  \new Staff {
    $(remove-grace-property 'Voice 'Stem 'direction)
    $(add-grace-property 'Voice 'NoteHead 'style 'cross)
    \new Voice {
       \acciaccatura { f16 } g4
       \grace { d16 e } f4
       \appoggiatura { f,32 g a } e2
    }
  }
}
[image of music]

LilyPond snippets v2.25.31 (development-branch).