On Thu, 7 May 2026 at 09:20, Michael Scheer <[email protected]> wrote:
>
> Hi Lilypond users,
>
> a bit tough to explain. Some players - and I've seen many scores using
> this as well - seem to expect the following:
>
> - Say we're in C major.
> - Now there's a g sharp, indicated with the accidental #
> - Also there's a slur here, crossing bar line.
> - In the next bar, still within the slur now a g should be played.
>   It is not necessary to prefix it with a natural sign, because we're
>   in the next measure, but some have a preference for it. (For me it's
>   rather confusing).
>
> I have attached a screenshot. So as for the second marked note, some
> players expect a natural sign before it.
>
> Is there some kind of flag in Lilypond, which leads to that behaviour?

Hello,

\accidentalStyle modern

See NR Displaying pitches > Automatic accidentals
https://lilypond.org/doc/v2.26/Documentation/notation/displaying-pitches.html#automatic-accidentals

\relative c'' {
  \key c \major
  \time 2/4
  \accidentalStyle modern
cis8-. a16( gis a4~ |
a16 b a g) f8 a |
}

Kind regards,
Xavier

Reply via email to