> I'm not top-posting

Thanks to both for your interesting follow-ups. Your information, Neil, makes
perfect sense.

Only I feel this information is perhaps lacking from the docs. I would have
expected the full story to be in
http://lilypond.org/doc/v2.14/Documentation/notation/displaying-pitches#automatic-accidentals,
or at least a reference to it. Am I expecting too much, or does the
documentation need more precision?

I see now that the docs only say to call set-accidental-style right in the
beginning of Staff << ... >>, which I didn't follow. But you, Neil, shows that
it does work elsewhere.

In any case, you have provided me with enough information for me to continue
working with LilyPond 2.14.1.

Yours, Ole

Neil Puttock <n... <at> gmail.com> writes:

> This works fine:
> 
> \version "2.14.1"
> \new PianoStaff \new Staff
> \relative c' {
>   \time 4/4
>   #(set-accidental-style 'piano-cautionary)
>   gis'1 g
>   #(set-accidental-style 'default 'PianoStaff)
>   dis1 d
>   #(set-accidental-style 'piano-cautionary)
>   ais'1 a
> }

This works fine too (which is new to myself):

\version "2.14.1"

\relative c' {
  \time 4/4

  #(set-accidental-style 'modern-cautionary)
  gis'1 g  % gives natural in brackets as expected
  #(set-accidental-style 'default)
  dis d    % no accidental before d; as expected
  #(set-accidental-style 'modern-cautionary)
  ais' a   % expected natural in crackets before a and got it
}



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

Reply via email to