lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unexpected placement of accidental


From: Jean Abou Samra
Subject: Re: Unexpected placement of accidental
Date: Thu, 5 Jan 2023 10:26:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

Le 05/01/2023 à 10:17, Ahanu Banerjee a écrit :
If I wanted to override the position of this single accidental, how might I do so?

Use extra-offset.

\version "2.24.0"

\language "english"
\relative {
  \clef bass
  \key a \major
  <
    \tweak Accidental.extra-offset #'(-0.35 . 0) f,
    \tweak Accidental.extra-offset #'(0.9 . 0) c'
    a' f'> s4*3
}


If you prefer the values to be relative to the note head (instead of relative to the default position), you have to put

\once \override Staff.AccidentalPlacement.positioning-done = ##t

before the chord (but then you need to place *all* the accidentals in the chord manually).

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]