On 17 June 2010 13:20, Dmytro O. Redchuk <brownian....@gmail.com> wrote:
> Hi!
>
> Please help --- "can't understand" (tm) "what's wrong" (tm) :-)
>
> Looking at that snippet below i would say that too few notes have natural sign
> cancelling preceeding sharp (only one). I would expect other voices have
> cancellations too.

The lack of accidentals in the first bar is explaing by the known
issue at the bottom of this page:
http://lilypond.org/doc/v2.13/Documentation/notation/displaying-pitches#automatic-accidentals

Looking at the definition for 'piano, it seems accidentals in other
voices are only remembered in the current bar, hence why there's only
one accidental present in the second bar.  You can tweak the
definition manually,

\layout {
  \context {
    \PianoStaff
    extraNatural = ##f
    autoAccidentals =
    #`(Staff
      ,(make-accidental-rule 'any-octave 1)
      ,(make-accidental-rule 'same-octave 1)
      PianoStaff
      ,(make-accidental-rule 'any-octave 1)
      ,(make-accidental-rule 'same-octave 1))
    autoCautionaries = #'()
  }
}

but there's still a problem with the lower stave not noticing the cis,
due to the durations all being equal in the first bar (this might be a
bug; I'm not sure without investigating further.)

Cheers,
Neil

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to