lilypond-user
[Top][All Lists]
Advanced

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

Default accidental style for PianoStaff


From: Knute Snortum
Subject: Default accidental style for PianoStaff
Date: Tue, 17 Aug 2021 15:56:47 -0700

Hello community,

I think I've found an inconsistency between the 2.22 documentation and
LilyPond's actual behavior.  If you go to the Automatic Accidental
page...

https://lilypond.org/doc/v2.22/Documentation/notation/displaying-pitches#automatic-accidentals

...and scroll down the "piano" section, you will see this sentence:

"This accidental style applies to the current GrandStaff or PianoStaff
by default."

But that's not the case.  Here is a fairly minimal working example:

%%%
\version "2.22.1"
\language "english"

rightHand = \relative {
  \time 2/4
  | g8 [ c af df ]
  | a8 [ d bf ef ]
}
leftHand = \relative {
  \time 2/4
  \clef bass
  | <g, g,>8 [ <c c,> <af af,> <df df,> ]
  | <a a,>8 [ <d d,> <bf bf,> <ef ef,> ]
}

\new PianoStaff <<
  \new Staff \rightHand
  \new Staff \leftHand
>>

\new PianoStaff <<
  \accidentalStyle piano
  \new Staff \rightHand
  \new Staff \leftHand
>>
%%%

On the first staff, the A and D in the second measure do not have a
cautionary natural sign but in the second, it does.  This shows that
the default accidental style is not "piano".  Am I missing anything?

I think LilyPond's behavior should match the documentation, because
having the accidental style default to "piano" in a PianoStaff seems
like the expected behavior.

--
Knute Snortum

Attachment: piano-accidental-style-example.png
Description: PNG image


reply via email to

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