David Kastrup wrote Wednesday, November 09, 2011 3:03 PM
The octave of notes may also be checked with the
`\octaveCheck 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).
This is a popular misconception, but it is wrong, as
you can see by introducing various accidentals.
The calculation of nearest note in \relative mode is
based, not on pitches, but on position on the staff.
The octave is chosen so the number of staff-spaces
between the two note-heads is 3 or less.
For example,
\relative c'' {
b c % c is 1 staff space up, so is the c above
b d % d is 2 up or 5 down, so is the d above
b e % e is 3 up or 4 down, so is the e above
b a % a is 6 up or 1 down, so is the a below
b g % g is 5 up or 2 down, so is the g below
b f % f is 4 up or 3 down, so is the f below
}
See
http://www.lilypond.org/doc/v2.15/Documentation/learning/simple-notation
Trevor
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user