On 11 June 2011 05:31, Marc Mouries <[email protected]> wrote:
>
> in the following code, lily prints both a natural and sharp sign before the
> G #.
> Why?
> Is there a way to avoid that?
> \version "2.14"
> \language "english"
> { \relative d' {
>     \key df \major
>      df ef f gs af bf c df
> }
> }

Because the g is flat according to the key and you want a g sharp.
First the flat is canceled with the natural and then the note is raised
with the sharp.  This is standard typesetting rules AFAIK.

To avoid that use
  \set Staff.extraNatural = ##f

This is explained in the doc, NR 1.1.1 Writing pitches > Accidentals
Snippet "Preventing extra naturals from being automatically added"
http://lilypond.org/doc/v2.14/Documentation/notation/writing-pitches.html#accidentals

Cheers,
Xavier

-- 
Xavier Scheuer <[email protected]>

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to