Jump to content

Distancing an accidental from the note using the right padding property

From LilyPond wiki

It is possible to distance an accidental from the note head by setting suitably the right-padding property of AccidentalPlacement.

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=4


\relative c'' {
  \time 1/4
  \once \override Staff.AccidentalPlacement.right-padding = #.5 cis
  \once \override Staff.AccidentalPlacement.right-padding = #1 cis
  \once \override Staff.AccidentalPlacement.right-padding = #1.5 cis
  \once \override Staff.AccidentalPlacement.right-padding = #2 cis
}