> I'm not top posting.

In a piano composition I chose #(set-accidental-style 'piano-cautionary), but a
few of the reminders (cautionary accidentals) seemed more confusing than
helpful. I thought I could switch to 'default. I could, it worked; but then I
couldn't switch back to 'piano-cautionary again.

Example:

\version "2.14.1"

\relative c' {
  \time 4/4

  #(set-accidental-style 'piano-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 'piano-cautionary)
  ais' a   % expected natural in brackets before a, didn't get
}

The work-around I found was to give all cautionary accidentals explicitly using
the question mark syntax:

\version "2.14.1"

\relative c' {
  \time 4/4

  gis'1 g?
  dis d
  ais' a?
}

The latter snippet gives the behaviour I had expected from the former.


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

Reply via email to