Common rules for typesetting accidentals have been placed in a function. This function is called as follows
#(set-accidental-style 'STYLE)
Optionally, the function can take two arguments: the name of the accidental style, and an optional argument that denotes the context that should be changed:
#(set-accidental-style 'STYLE #('CONTEXT#))
If no context name is supplied, Staff
is the default,
but you may wish to apply the accidental style to a single Voice
instead.
The following accidental styles are supported:
default
voice
default
.
\new Staff << #(set-accidental-style 'voice) { ... } >>
As a result, accidentals from one voice do not get canceled in other voices, which is often an unwanted result: in the following example, it is hard to determine whether the second `a' should be played natural or sharp.
The voice
option should be used if the voices
are to be read solely by individual musicians. If the staff is to be
used by one musician (e.g., a conductor) then
modern
or modern-cautionary
should be used instead.
modern
default
, but temporary
accidentals also are canceled in other octaves. Furthermore,
in the same octave, they also get canceled in the following
measure: in the following example, notice the two natural signs which appear
in the second bar of the upper staff.
modern-cautionary
modern
, but the ‘extra’ accidentals
(the ones not typeset by default
) are typeset as cautionary
accidentals. They are printed in reduced size or (by default)
with parentheses – this can be set by definig the cautionary-style
property of the AccidentalSuggestion object.
modern-voice
modern-voice-cautionary
modern-voice
, but with the extra
accidentals (the ones not typeset by voice
) typeset
as cautionaries. Even though all accidentals typeset by
default
are typeset by this variable,
some of them are typeset as cautionaries.
piano
\new GrandStaff { << \new Staff = "up" { << #(set-accidental-style 'piano) { ... } >> } \new Staff = "down"{ << #(set-accidental-style 'piano) { ... } >> } >> }
This rule reflects 20th century practice for piano notation. Its behavior is very
similar to modern
style, but here accidentals also get canceled
across the staves in the same GrandStaff or
PianoStaff.
piano-cautionary
#(set-accidental-style 'piano)
but with the extra
accidentals typeset as cautionaries.
no-reset
default
but with accidentals lasting
‘forever’ and not only until the next measure:
forget
no-reset
: Accidentals
are not remembered at all – and hence all accidentals are
typeset relative to the key signature, regardless of what was
before in the music
Program reference: Accidental_engraver, Accidental, AccidentalSuggestion and AccidentalPlacement.
Simultaneous notes are considered to be entered in sequential
mode. This means that in a chord the accidentals are typeset as if the
notes in the chord happen one at a time, in the order in which
they appear in the input file. This is a problem when accidentals
in a chord depend on each other,
which does not happen for the default accidental style. The problem
can be solved by manually inserting !
and ?
for the
problematic notes.
Cette page documente LilyPond-2.11.28 (branche de développement).
Rapporter toute anomalie en français à lilypond-user-fr@gnu.org ou en anglais à http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs
Your suggestions for the documentation are welcome.