lilypond-user
[Top][All Lists]
Advanced

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

problem with accidental / accidental-style


From: Roland Goretzki
Subject: problem with accidental / accidental-style
Date: Thu, 15 Oct 2009 06:14:38 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

version 2.12.2

Hi at all,

according to the snippet below, and AFAIK and have seen, in complex
piano music it is common practice to show an accidental, if the note was
printed with a natural before, ALSO if this did happen in the previous
bar, AND ALSO if it was in another octave.

So in the snippet with unisono-music the fourth note in the LEFT hand
does get its accidental, because in the bar before in the RIGHT hand
there was a natural in the same octave.

I know, this behaviour is caused with:

    #(set-accidental-style 'piano)

This setting is very useful in this kind of piece, but on the other hand
it is much irritating, if the accidental appears only at the note in the
one hand, AND NOT at the same note one octave higher in the other hand.

And yes, I know, it is possible to get the wanted accidental with a "!"
behind the notename, but in this special case this would be very hard:

The piece is the last part of Chopin's second sonata in b-b-moll, and
there are 77 bars similar to the two in the snippet, so my question is:

Is there a way to get accidentals automatically in the wanted form with
something like "set-accidental-style"?

Thanks for every hint
Best Regards           Roland


%snippet ----------------------------------
\version "2.12.2"

\include "deutsch.ly"
#(set-global-staff-size 20)

\paper{ ragged-bottom=##t }

global = {
  #(set-accidental-style 'piano)
  \key b \minor
}

rechts = \context Staff \relative c{
  \context Voice = "rechts"
  \clef bass
  \override TupletBracket #'bracket-visibility = ##f
  \override TupletNumber  #'transparent = ##t
  \times 2/3 {
    f8 g b des e, g
    f8 g b des e, g
    g a c es fis, a
    g a c es fis, a
  }
}

\score {
  \new PianoStaff
  <<
    \context Staff = "up" << 
      \global
      \clef violin
      \rechts
    >>
    \context Staff = "down" <<
      \global
      \clef bass
      \transpose c c, { \rechts }
    >>
  >>
}
%snippet ----------------------------------




reply via email to

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