bug-lilypond
[Top][All Lists]
Advanced

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

Re: Switcing accidental style doesn't always work


From: Ole Vedel Villumsen
Subject: Re: Switcing accidental style doesn't always work
Date: Thu, 7 Jul 2011 17:24:44 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

> 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
}





reply via email to

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