Next: Transpose, Up: Changing multiple pitches
In relative mode, it is easy to forget an octave changing mark. Octave checks make such errors easier to find by displaying a warning and correcting the octave if a note is found in an unexpected octave.
To check the octave of a specific note, specify the absolute
octave after the =
symbol. This example will generate
a warning (and change the pitch) because the second note is the
absolute octave d''
instead of d'
as indicated by
the octave correction.
\relative c'' { c2 d='4 d e2 f }
The octave of notes may also be checked with the
\octave
controlpitch command. controlpitch is
specified in absolute mode. This checks that the interval between the
previous note and the controlpitch is within a fourth (i.e. the
normal calculation of relative mode). If this check fails, a warning
is printed, but the previous note is not changed. Future notes are
relative to the controlpitch.
\relative c'' { c2 d \octave c' e2 f }
Compare the two bars below. The first and third \octave
check fail, but the second one does not fail.
\relative c'' { c4 f g f c4 \octave c' f \octave c' g \octave c' f }
Snippets: Pitches
.
Next: Transpose, Up: Changing multiple pitches
Diese Seite ist für LilyPond-2.11.40 (Entwicklungszweig).
Fehler bitte an http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs melden.
Ihre Vorschläge für die Dokumentation sind willkommen.