+2003-09-14 Graham Percival <gperlist@shaw.ca>
+
+ * Documentation/user/ tutorial.itely, refman.itely: add warning
+ about \key and accidentals.
+
2003-09-14 Han-Wen Nienhuys <hanwen@cs.uu.nl>
* Documentation/user/*.itely: manual tweaks
is denoted by a set of alterations (flats or sharps) at the start of
the staff.
+WARNING! The key signature only changes the output, not the music
+itself. An F-sharp in the key of D major is still an F-sharp, not
+an F -- you must type @code{fis}, not @code{f}. If you don't modify
+a pitch with @code{-is} or @code{-es}, LilyPond will assume that
+you want a natural note. See this example:
+
+@quotation
+@example
+\key d \major
+fis4 f fes fis
+g2 fis
+@end example
+@end quotation
+
+@lilypond[noindent]
+\score{ \notes { \relative c'{
+\key d \major
+fis4 f fes fis
+g2 fis
+}}}
+@end lilypond
+
+
@syntax
Setting or changing the key signature is done with the @code{\key}
-@c -*-texinfo-*-
+c -*-texinfo-*-
@c TODO:
@c * more details about running lilypond; error messages,
@cindex key signature, setting
The key signature is set with the command ``@code{\key}'', followed by
-a pitch and @code{\major} or @code{\minor}:
+a pitch and @code{\major} or @code{\minor}:
@quotation
@example
\key d \major
@end lilypond
@end quotation
+WARNING! The key signature only affects the way the output is printed,
+not the music itself. If you type
+
+@example
+@code{
+\key d \major
+d e f g
+}
+@end example
+
+LilyPond will print an F-natural. An F-sharp in the key of D major
+is still an F-sharp! To print an F-sharp, you must use @code{fis},
+no matter what the key signature is. See this example:
+
+@quotation
+@example
+\key d \major
+fis4 f fes fis |
+g2 fis
+@end example
+@end quotation
+
+@lilypond[noindent]
+\score{ \notes { \relative c'{
+\key d \major
+fis4 f fes fis
+g2 fis
+}}}
+@end lilypond
+@separate
@cindex tie
A tie is created by adding a tilde ``@code{~}'' to the first note