1 @c -*- coding: utf-8; mode: texinfo; -*-
3 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
5 When revising a translation, copy the HEAD committish of the
6 version that you are working on. See TRANSLATION for details.
15 @lilypondfile[quote]{pitches-headword.ly}
17 This section discusses how to specify the pitch of notes. There
18 are three steps to this process: input, modification, and output.
22 * Changing multiple pitches::
23 * Displaying pitches::
29 @subsection Writing pitches
31 This section discusses how to input pitches. There are two
32 different ways to place notes in octaves: absolute and relative
33 mode. In most cases, relative mode will be more convenient.
36 * Absolute octave entry::
37 * Relative octave entry::
39 * Note names in other languages::
43 @node Absolute octave entry
44 @unnumberedsubsubsec Absolute octave entry
49 @cindex absolute octave specification
50 @cindex absolute octave entry
52 A pitch name is specified using lowercase letters@tie{}@code{a}
53 through@tie{}@code{g}. The note names @code{c} to @code{b} are
54 engraved in the octave below middle C.
57 @lilypond[verbatim,quote,fragment]
64 @cindex octave changing mark
68 Other octaves may be specified with a single quote@tie{}(@code{'})
69 or comma@tie{}(@code{,}) character. Each@tie{}@code{'} raises the
70 pitch by one octave; each@tie{}@code{,} lowers the pitch by an
73 @lilypond[verbatim,quote,fragment]
91 @node Relative octave entry
92 @unnumberedsubsubsec Relative octave entry
95 @cindex relative octave entry
96 @cindex relative octave specification
99 When octaves are specified in absolute mode it is easy to
100 accidentally put a pitch in the wrong octave. Relative octave
101 mode reduces these errors since most of the time it is not
102 necessary to indicate any octaves at all. Furthermore, in
103 absolute mode a single mistake may be difficult to spot, while in
104 relative mode a single error puts the rest of the piece off by one
108 \relative @var{startpitch} @var{musicexpr}
111 In relative mode, each note is assumed to be as close to the
112 previous note as possible. This means that the octave of each
113 pitch inside @var{musicexpr} is calculated as follows:
117 If no octave changing mark is used on a pitch, its octave is
118 calculated so that the interval with the previous note is less
119 than a fifth. This interval is determined without considering
123 An octave changing mark@tie{}@code{'} or@tie{}@code{,} can be
124 added to respectively raise or lower a pitch by an extra octave,
125 relative to the pitch calculated without an octave mark.
128 Multiple octave changing marks can be used. For example,
129 @code{''}@tie{}and@tie{}@code{,,} will alter the pitch by two
133 The pitch of the first note is relative to
134 @code{@var{startpitch}}. @var{startpitch} is specified in
135 absolute octave mode, and it is recommended that it be a octave of
140 Here is the relative mode shown in action:
142 @lilypond[verbatim,quote]
151 Octave changing marks are used for intervals greater than a
154 @lilypond[verbatim,quote]
161 A note sequence without a single octave mark can nevertheless span
164 @lilypond[verbatim,quote]
171 If the preceding item is a chord, the first note of the chord is
172 used as the reference point for the octave placement of a
173 following note or chord. Inside chords, the next note is always
174 relative to the preceding one. Examine the next example
175 carefully, paying attention to the @code{c} notes.
177 @lilypond[verbatim,quote]
186 As explained above, the octave of pitches is calculated only with
187 the note names, regardless of any alterations. Therefore, an
188 E-double-sharp following a B will be placed higher, while an
189 F-double-flat will be placed lower. In other words, a
190 double-augmented fourth is considered a smaller interval than a
191 double-diminished fifth, regardless of the number of semitones
192 that each interval contains.
194 @lilypond[verbatim,quote]
218 @rinternals{RelativeOctaveMusic}.
221 @cindex relative octave entry and transposition
222 @cindex transposition and relative octave entry
229 The relative conversion will not affect @code{\transpose},
230 @code{\chordmode} or @code{\relative} sections in its argument.
231 To use relative mode within transposed music, an additional
232 @code{\relative} must be placed inside @code{\transpose}.
235 If no @var{startpitch} is specified for @code{\relative},
236 then@tie{}@code{c'} is assumed. However, this is a deprecated
237 option and may disappear in future versions, so its use is
243 @unnumberedsubsubsec Accidentals
246 @cindex key signature
249 @c duplicated in Key signature and Accidentals
250 @warning{New users are sometimes confused about accidentals and
251 key signatures. In LilyPond, note names are the raw input; key
252 signatures and clefs determine how this raw input is displayed.
253 An unaltered note like@tie{}@code{c} means @q{C natural},
254 regardless of the key signature or clef. For more information,
255 see @rlearning{Accidentals and key signatures}.}
257 @cindex note names, Dutch
258 @cindex note names, default
262 @cindex sharp, double
266 @cindex natural pitch
268 A @notation{sharp} pitch is made by adding @code{is} to the note
269 name, and a @notation{flat} pitch by adding @code{es}. As you
270 might expect, a @notation{double sharp} or @notation{double flat}
271 is made by adding @code{isis} or @code{eses}. This syntax is
272 derived from Dutch note naming conventions. To use other names
273 for accidentals, see @ref{Note names in other languages}.
275 @lilypond[verbatim,quote,relative=2]
279 A natural will cancel the effect of an accidental or key
280 signature. However, naturals are not encoded into the note name
281 syntax with a suffix; a natural pitch is shown as a simple note
284 @lilypond[verbatim,quote,relative=2]
288 @cindex quarter tones
289 @cindex semi-flats, semi-sharps
291 Quarter tones may be added; the following is a series of Cs with
294 @lilypond[verbatim,quote,relative=2]
295 ceseh1 ces ceh c cih cis cisih
300 @cindex accidental, reminder
301 @cindex accidental, cautionary
302 @cindex accidental, parenthesized
303 @cindex reminder accidental
305 @cindex cautionary accidental
306 @cindex parenthesized accidental
309 Normally accidentals are printed automatically, but you may also
310 print them manually. A reminder accidental can be forced by
311 adding an exclamation mark@tie{}@code{!} after the pitch. A
312 cautionary accidental (i.e., an accidental within parentheses) can
313 be obtained by adding the question mark@tie{}@code{?} after the
314 pitch. These extra accidentals can also be used to produce
317 @lilypond[verbatim,quote,relative=2]
318 cis cis cis! cis? c c c! c?
321 @cindex accidental on tied note
322 @cindex tied note, accidental
324 Accidentals on tied notes are only printed at the beginning of a
327 @lilypond[verbatim,quote,relative=2]
336 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
337 {preventing-extra-naturals-from-being-automatically-added.ly}
344 @rglos{double sharp},
347 @rglos{quarter tone}.
350 @rlearning{Accidentals and key signatures}.
353 @ref{Automatic accidentals},
354 @ref{Annotational accidentals},
355 @ref{Note names in other languages}.
361 @rinternals{Accidental_engraver},
362 @rinternals{Accidental},
363 @rinternals{AccidentalCautionary},
364 @rinternals{accidental-interface}.
367 @cindex accidental, quarter-tone
368 @cindex quarter-tone accidental
372 There are no generally accepted standards for denoting
373 quarter-tone accidentals, so LilyPond's symbol does not conform to
378 @node Note names in other languages
379 @unnumberedsubsubsec Note names in other languages
381 @cindex note names, other languages
382 @cindex pitch names, other languages
383 @cindex language, note names in other
384 @cindex language, pitch names in other
386 There are predefined sets of note names for various other
387 languages. To use them, include the language-specific init file.
388 For example, to use English notes names, add
389 @w{@code{\include "english.ly"}} to the top of the input file.
390 The available language files and the note names they define are:
394 @multitable {nederlands.ly} {do re mi fa sol la sib si} {-iss/-is} {-ess/-es} {-ss/-x/-sharpsharp} {-essess/-eses}
397 @tab sharp @tab flat @tab double sharp @tab double flat
399 @tab c d e f g a bes b
400 @tab -is @tab -es @tab -isis @tab -eses
402 @tab do re mi fa sol la sib si
403 @tab -d @tab -b @tab -dd @tab -bb
405 @tab do re mi fa sol la sib si
406 @tab -d/-s @tab -b @tab -dd/-ss @tab -bb
409 @tab -is @tab -es @tab -isis @tab -eses
411 @tab c d e f g a bf b
412 @tab -s/-sharp @tab -f/-flat @tab -ss/-x/-sharpsharp
415 @tab do re mi fa sol la sib si
416 @tab -s @tab -b @tab -ss @tab -bb
418 @tab do re mi fa sol la sib si
419 @tab -d @tab -b @tab -dd @tab -bb
422 @tab -iss/-is @tab -ess/-es @tab -ississ/-isis
425 @tab do re mi fa sol la sib si
426 @tab -s @tab -b @tab -ss @tab -bb
429 @tab -is @tab -es @tab -isis @tab -eses
432 @tab -iss @tab -ess @tab -ississ @tab -essess
434 @tab do re mi fa sol la sib si
435 @tab -k @tab -b @tab -kk @tab -bb
439 In Dutch, @code{aes} is contracted to @code{as}, but both forms
440 are accepted in LilyPond. Similarly, both @code{es} and
441 @code{ees} are accepted. This also applies to
442 @code{aeses}@tie{}/@tie{}@code{ases} and
443 @code{eeses}@tie{}/@tie{}@code{eses}. Sometimes only these
444 contracted names are defined in the corresponding language files.
446 @lilypond[verbatim,quote,relative=2]
447 a2 as e es a ases e eses
457 Some music uses microtones whose alterations are fractions of a
458 @q{normal} sharp or flat. The note names for quarter-tones
459 defined in the various language files are listed in the following
460 table. Here the prefixes @notation{semi-} and @notation{sesqui-}
461 mean @q{half} and @q{one and a half}, respectively. For the other
462 languages, no special names have been defined yet.
465 @multitable {nederlands.ly} {do re mi fa sol la sib si} {-iss/-is} {-ess/-es} {-ississ/-isis} {-ississ/-isis}
468 @tab semi-sharp @tab semi-flat @tab sesqui-sharp @tab sesqui-flat
471 @tab c d e f g a bes b
472 @tab -ih @tab -eh @tab -isih @tab -eseh
474 @tab do re mi fa sol la sib si
475 @tab -sd @tab -sb @tab -dsd @tab -bsb
478 @tab -ih @tab -eh @tab -isih @tab -eseh
480 @tab c d e f g a bf b
481 @tab -qs @tab -qf @tab -tqs @tab -tqf
483 @tab do re mi fa sol la sib si
484 @tab -sd @tab -sb @tab -dsd @tab -bsb
486 @tab do re mi fa sol la sib si
487 @tab -sqt @tab -bqt @tab -stqt @tab -btqt
501 @node Changing multiple pitches
502 @subsection Changing multiple pitches
504 This section discusses how to modify pitches.
512 @unnumberedsubsubsec Octave checks
514 @cindex octave correction
516 @cindex control pitch
518 @funindex \octaveCheck
519 @funindex controlpitch
521 In relative mode, it is easy to forget an octave changing mark.
522 Octave checks make such errors easier to find by displaying a
523 warning and correcting the octave if a note is found in an
526 To check the octave of a note, specify the absolute octave after
527 the @code{=}@tie{}symbol. This example will generate a warning
528 (and change the pitch) because the second note is the absolute
529 octave @code{d''} instead of @code{d'} as indicated by the octave
532 @lilypond[verbatim,quote]
539 The octave of notes may also be checked with the
540 @code{\octaveCheck}@tie{}@var{controlpitch} command.
541 @var{controlpitch} is specified in absolute mode. This checks
542 that the interval between the previous note and the
543 @var{controlpitch} is within a fourth (i.e., the normal
544 calculation of relative mode). If this check fails, a warning is
545 printed, but the previous note is not changed. Future notes are
546 relative to the @var{controlpitch}.
548 @lilypond[verbatim,quote]
556 Compare the two bars below. The first and third @code{\octaveCheck}
557 checks fail, but the second one does not fail.
559 @lilypond[verbatim,quote]
580 @rinternals{RelativeOctaveCheck}.
584 @unnumberedsubsubsec Transpose
588 @cindex transposition
589 @cindex transposition of pitches
590 @cindex transposition of notes
591 @cindex pitches, transposition of
592 @cindex notes, transposition of
595 A music expression can be transposed with @code{\transpose}. The
599 \transpose @var{frompitch} @var{topitch} @var{musicexpr}
603 This means that @var{musicexpr} is transposed by the interval
604 between the pitches @var{frompitch} and @var{topitch}: any note
605 with pitch @var{frompitch} is changed to @var{topitch} and any
606 other note is transposed by the same interval. Both pitches are
607 entered in absolute mode.
609 Consider a piece written in the key of D-major. It can be
610 transposed up to E-major; note that the key signature is
611 automatically transposed as well.
613 @lilypond[verbatim,quote]
622 @cindex transposing instruments
623 @cindex instruments, transposing
625 If a part written in C (normal @notation{concert pitch}) is to be
626 played on the A clarinet (for which an A is notated as a C and
627 thus sounds a minor third lower than notated), the appropriate
628 part will be produced with:
630 @lilypond[verbatim,quote]
640 Note that we specify @w{@code{\key c \major}} explicitly. If we
641 do not specify a key signature, the notes will be transposed but
642 no key signature will be printed.
644 @code{\transpose} distinguishes between enharmonic pitches: both
645 @w{@code{\transpose c cis}} or @w{@code{\transpose c des}} will
646 transpose up a semitone. The first version will print sharps and
647 the notes will remain on the same scale step, the second version
648 will print flats on the scale step above.
650 @lilypond[verbatim,quote]
651 music = \relative c' { c d e f }
653 \transpose c cis { \music }
654 \transpose c des { \music }
658 @cindex transposing instruments
659 @cindex instruments, transposing
661 @code{\transpose} may also be used in a different way, to input
662 written notes for a transposing instrument. The previous examples
663 show how to enter pitches in C (or @notation{concert pitch}) and
664 typeset them for a transposing instrument, but the opposite is
665 also possible if you for example have a set of instrumental parts
666 and want to print a conductor's score. For example, when entering
667 music for a B-flat trumpet that begins on a notated E (concert D),
671 musicInBflat = @{ e4 @dots{} @}
672 \transpose c bes, \musicInBflat
676 To print this music in F (e.g., rearranging to a French horn) you
677 could wrap the existing music with another @code{\transpose}:
680 musicInBflat = @{ e4 @dots{} @}
681 \transpose f c' @{ \transpose c bes, \musicInBflat @}
685 For more information about transposing instruments,
686 see @ref{Instrument transpositions}.
691 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
692 {transposing-pitches-with-minimum-accidentals-smart-transpose.ly}
698 @ref{Instrument transpositions}.
704 @rinternals{TransposedMusic}.
712 The relative conversion will not affect @code{\transpose},
713 @code{\chordmode} or @code{\relative} sections in its argument.
714 To use relative mode within transposed music, an additional
715 @code{\relative} must be placed inside @code{\transpose}.
718 @node Displaying pitches
719 @subsection Displaying pitches
721 This section discusses how to alter the output of pitches.
727 * Instrument transpositions::
728 * Automatic accidentals::
734 @unnumberedsubsubsec Clef
747 @cindex mezzosoprano clef
748 @cindex baritone clef
749 @cindex varbaritone clef
753 @cindex clef, ancient
763 @cindex clef, soprano
764 @cindex clef, mezzosoprano
765 @cindex clef, baritone
766 @cindex clef, varbaritone
767 @cindex subbass clef, subbass
769 The clef may be altered. Middle C is shown in every example.
771 @lilypond[verbatim,quote,relative=1]
784 @lilypond[verbatim,quote,relative=1]
806 Further supported clefs are described under @ref{Ancient clefs}.
808 @cindex transposing clefs
809 @cindex clef, transposing
810 @cindex octave transposition
811 @cindex choral tenor clef
813 By adding@tie{}@code{_8} or@tie{}@code{^8} to the clef name, the
814 clef is transposed one octave down or up, respectively,
815 and@tie{}@code{_15} and@tie{}@code{^15} transpose by two octaves.
816 The clef name must be enclosed in quotes when it contains
817 underscores or digits.
819 @lilypond[verbatim,quote,relative=2]
831 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
832 {tweaking-clef-properties.ly}
844 @rinternals{Clef_engraver},
846 @rinternals{OctavateEight},
847 @rinternals{clef-interface}.
851 @unnumberedsubsubsec Key signature
853 @cindex key signature
856 @c duplicated in Key signature and Accidentals
857 @warning{New users are sometimes confused about accidentals and
858 key signatures. In LilyPond, note names are the raw input; key
859 signatures and clefs determine how this raw input is displayed.
860 An unaltered note like@tie{}@code{c} means @q{C natural},
861 regardless of the key signature or clef. For more information,
862 see @rlearning{Accidentals and key signatures}.}
864 The key signature indicates the tonality in which a piece is
865 played. It is denoted by a set of alterations (flats or sharps)
866 at the start of the staff. The key signature may be altered:
869 \key @var{pitch} @var{mode}
877 @funindex \mixolydian
893 Here, @var{mode} should be @code{\major} or @code{\minor} to get a
894 key signature of @var{pitch}-major or @var{pitch}-minor,
895 respectively. You may also use the standard mode names, also
896 called @notation{church modes}: @code{\ionian}, @code{\dorian},
897 @code{\phrygian}, @code{\lydian}, @code{\mixolydian},
898 @code{\aeolian}, and @code{\locrian}.
900 @lilypond[verbatim,quote,relative=2]
910 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
911 {preventing-natural-signs-from-being-printed-when-the-key-signature-changes.ly}
913 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
914 {non-traditional-key-signatures.ly}
924 @rlearning{Accidentals and key signatures}.
930 @rinternals{KeyChangeEvent},
931 @rinternals{Key_engraver},
932 @rinternals{Key_performer},
933 @rinternals{KeyCancellation},
934 @rinternals{KeySignature},
935 @rinternals{key-cancellation-interface},
936 @rinternals{key-signature-interface}.
939 @node Ottava brackets
940 @unnumberedsubsubsec Ottava brackets
947 @funindex set-octavation
949 @notation{Ottava brackets} introduce an extra transposition of an
950 octave for the staff:
952 @lilypond[verbatim,quote,relative=2]
960 The @code{ottava} function also takes -1 (for 8va bassa),
961 2@tie{}(for 15ma), and -2 (for 15ma bassa) as arguments.
966 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
979 @rinternals{Ottava_spanner_engraver},
980 @rinternals{OttavaBracket},
981 @rinternals{ottava-bracket-interface}.
985 @node Instrument transpositions
986 @unnumberedsubsubsec Instrument transpositions
988 @cindex transposition, MIDI
989 @cindex transposition, instrument
990 @cindex transposing instrument
992 @cindex MIDI transposition
993 @funindex \transposition
995 When typesetting scores that involve transposing instruments, some
996 parts can be typeset in a different pitch than the
997 @notation{concert pitch}. In these cases, the key of the
998 @notation{transposing instrument} should be specified; otherwise
999 the MIDI output and cues in other parts will produce incorrect
1000 pitches. For more information about quotations, see
1001 @ref{Quoting other voices}.
1004 \transposition @var{pitch}
1007 The pitch to use for @code{\transposition} should correspond to
1008 the real sound heard when a@tie{}@code{c'} written on the staff is
1009 played by the transposing instrument. This pitch is entered in
1010 absolute mode, so an instrument that produces a real sound which
1011 is one tone higher than the printed music should use
1012 @w{@code{\transposition d'}}. @code{\transposition} should
1013 @emph{only} be used if the pitches are @emph{not} being entered in
1016 Here are a few notes for violin and B-flat clarinet where the
1017 parts have been entered using the notes and key as they appear in
1018 each part of the conductor's score. The two instruments are
1021 @lilypond[verbatim,quote]
1023 \new Staff = "violin" {
1025 \set Staff.instrumentName = "Vln"
1026 \set Staff.midiInstrument = "violin"
1027 % not strictly necessary, but a good reminder
1034 \new Staff = "clarinet" {
1036 \set Staff.instrumentName = \markup { Cl (B\flat) }
1037 \set Staff.midiInstrument = "clarinet"
1047 The @code{\transposition} may be changed during a piece. For
1048 example, a clarinetist may switch from an A clarinet to a B-flat
1051 @lilypond[verbatim,quote,relative=2]
1052 \set Staff.instrumentName = "Cl (A)"
1057 s1*0^\markup { Switch to B\flat clarinet }
1069 @rglos{concert pitch},
1070 @rglos{transposing instrument}.
1073 @ref{Quoting other voices}, @ref{Transpose}.
1079 @node Automatic accidentals
1080 @unnumberedsubsubsec Automatic accidentals
1082 @cindex accidental style
1083 @cindex accidental style, default
1085 @cindex accidentals, automatic
1086 @cindex automatic accidentals
1087 @cindex default accidental style
1088 @funindex set-accidental-style
1091 There are many different conventions on how to typeset
1092 accidentals. LilyPond provides a function to specify which
1093 accidental style to use. This function is called as follows:
1097 #(set-accidental-style 'voice)
1102 The accidental style applies to the current @code{Staff} by
1103 default (with the exception of the styles @code{piano} and
1104 @code{piano-cautionary}, which are explained below). Optionally,
1105 the function can take a second argument that determines in which
1106 scope the style should be changed. For example, to use the same
1107 style in all staves of the current @code{StaffGroup}, use:
1110 #(set-accidental-style 'voice 'StaffGroup)
1113 The following accidental styles are supported. To demonstrate
1114 each style, we use the following example:
1118 @lilypond[verbatim,quote]
1122 cis'8 fis, d'4 <a cis>8 f bis4 |
1136 \voiceTwo \relative c' {
1140 \change Staff = down
1144 \change Staff = down
1145 <fis, a cis>4 gis <f a d>2 |
1152 \context Staff = "up" {
1153 #(set-accidental-style 'default)
1156 \context Staff = "down" {
1157 #(set-accidental-style 'default)
1164 Note that the last lines of this example can be replaced by the
1165 following, as long as the same accidental style should be used in
1171 \context Staff = "up" @{
1172 %%% change the next line as desired:
1173 #(set-accidental-style 'default 'Score)
1176 \context Staff = "down" @{
1184 @c don't use verbatim in this table.
1188 @cindex default accidental style
1189 @cindex accidental style, default
1192 This is the default typesetting behavior. It corresponds to
1193 eighteenth-century common practice: accidentals are remembered to
1194 the end of the measure in which they occur and only in their own
1195 octave. Thus, in the example below, no natural signs are printed
1196 before the@tie{}@code{b} in the second measure or the
1203 cis'8 fis, d'4 <a cis>8 f bis4 |
1217 \voiceTwo \relative c' {
1221 \change Staff = down
1225 \change Staff = down
1226 <fis, a cis>4 gis <f a d>2 |
1233 \context Staff = "up" {
1234 #(set-accidental-style 'default)
1237 \context Staff = "down" {
1238 #(set-accidental-style 'default)
1247 @cindex accidental style, voice
1248 @cindex voice accidental style
1249 @cindex accidental style, modern
1250 @cindex modern accidental style
1251 @cindex accidental style, modern-cautionary
1252 @cindex modern-cautionary accidental style
1255 The normal behavior is to remember the accidentals at
1256 @code{Staff}-level. In this style, however, accidentals are
1257 typeset individually for each voice. Apart from that, the rule is
1258 similar to @code{default}.
1260 As a result, accidentals from one voice do not get canceled in
1261 other voices, which is often an unwanted result: in the following
1262 example, it is hard to determine whether the second@tie{}@code{a}
1263 should be played natural or sharp. The @code{voice} option should
1264 therefore be used only if the voices are to be read solely by
1265 individual musicians. If the staff is to be used by one musician
1266 (e.g., a conductor or in a piano score) then @code{modern} or
1267 @code{modern-cautionary} should be used instead.
1274 cis'8 fis, d'4 <a cis>8 f bis4 |
1288 \voiceTwo \relative c' {
1292 \change Staff = down
1296 \change Staff = down
1297 <fis, a cis>4 gis <f a d>2 |
1304 \context Staff = "up" {
1305 #(set-accidental-style 'voice)
1308 \context Staff = "down" {
1309 #(set-accidental-style 'voice)
1318 @cindex accidentals, modern style
1319 @cindex modern style accidentals
1322 This rule corresponds to the common practice in the twentieth
1323 century. It prints the same accidentals as @code{default}, with
1324 two exceptions that serve to avoid ambiguity: after temporary
1325 accidentals, cancellation marks are printed also in the following
1326 measure (for notes in the same octave) and, in the same measure,
1327 for notes in other octaves. Hence the naturals before
1328 the@tie{}@code{b} and the@tie{}@code{c} in the second measure of
1335 cis'8 fis, d'4 <a cis>8 f bis4 |
1349 \voiceTwo \relative c' {
1353 \change Staff = down
1357 \change Staff = down
1358 <fis, a cis>4 gis <f a d>2 |
1365 \context Staff = "up" {
1366 #(set-accidental-style 'modern)
1369 \context Staff = "down" {
1370 #(set-accidental-style 'modern)
1377 @item modern-cautionary
1379 @cindex accidentals, modern cautionary style
1380 @cindex modern accidental style
1381 @cindex modern cautionary accidental style
1382 @cindex modern style accidentals
1383 @cindex modern style cautionary accidentals
1384 @funindex modern-cautionary
1386 This rule is similar to @code{modern}, but the @q{extra}
1387 accidentals (the ones not typeset by @code{default}) are typeset
1388 as cautionary accidentals. They are by default printed with
1389 parentheses, but they can also be printed in reduced size by
1390 defining the @code{cautionary-style} property of
1391 @code{AccidentalSuggestion}.
1397 cis'8 fis, d'4 <a cis>8 f bis4 |
1411 \voiceTwo \relative c' {
1415 \change Staff = down
1419 \change Staff = down
1420 <fis, a cis>4 gis <f a d>2 |
1427 \context Staff = "up" {
1428 #(set-accidental-style 'modern-cautionary)
1431 \context Staff = "down" {
1432 #(set-accidental-style 'modern-cautionary)
1441 @cindex accidental style, modern
1442 @cindex accidentals, modern
1443 @cindex accidentals, multivoice
1444 @cindex modern accidental style
1445 @cindex modern accidentals
1446 @cindex multivoice accidentals
1447 @funindex modern-voice
1449 This rule is used for multivoice accidentals to be read both by
1450 musicians playing one voice and musicians playing all voices.
1451 Accidentals are typeset for each voice, but they @emph{are}
1452 canceled across voices in the same @code{Staff}. Hence,
1453 the@tie{}@code{a} in the last measure is canceled because the
1454 previous cancellation was in a different voice, and
1455 the@tie{}@code{d} in the lower staff is canceled because of the
1456 accidental in a different voice in the previous measure:
1462 cis'8 fis, d'4 <a cis>8 f bis4 |
1476 \voiceTwo \relative c' {
1480 \change Staff = down
1484 \change Staff = down
1485 <fis, a cis>4 gis <f a d>2 |
1492 \context Staff = "up" {
1493 #(set-accidental-style 'modern-voice)
1496 \context Staff = "down" {
1497 #(set-accidental-style 'modern-voice)
1504 @cindex accidental style, cautionary, modern voice
1505 @cindex accidental style, modern voice cautionary
1506 @cindex accidental style, voice, modern cautionary
1507 @funindex modern-voice-cautionary
1509 @item modern-voice-cautionary
1511 This rule is the same as @code{modern-voice}, but with the extra
1512 accidentals (the ones not typeset by @code{voice}) typeset as
1513 cautionaries. Even though all accidentals typeset by
1514 @code{default} @emph{are} typeset with this rule, some of them are
1515 typeset as cautionaries.
1521 cis'8 fis, d'4 <a cis>8 f bis4 |
1535 \voiceTwo \relative c' {
1539 \change Staff = down
1543 \change Staff = down
1544 <fis, a cis>4 gis <f a d>2 |
1551 \context Staff = "up" {
1552 #(set-accidental-style 'modern-voice-cautionary)
1555 \context Staff = "down" {
1556 #(set-accidental-style 'modern-voice-cautionary)
1565 @cindex accidental style, piano
1566 @cindex accidentals, piano
1567 @cindex piano accidental style
1568 @cindex piano accidentals
1571 This rule reflects twentieth-century practice for piano notation.
1572 Its behavior is very similar to @code{modern} style, but here
1573 accidentals also get canceled across the staves in the same
1574 @code{GrandStaff} or @code{PianoStaff}, hence all the
1575 cancellations of the final notes.
1577 This accidental style applies to the current @code{GrandStaff} or
1578 @code{PianoStaff} by default.
1584 cis'8 fis, d'4 <a cis>8 f bis4 |
1598 \voiceTwo \relative c' {
1602 \change Staff = down
1606 \change Staff = down
1607 <fis, a cis>4 gis <f a d>2 |
1614 \context Staff = "up" {
1615 #(set-accidental-style 'piano)
1618 \context Staff = "down" {
1625 @item piano-cautionary
1627 @funindex piano-cautionary
1628 @cindex accidentals, piano cautionary
1629 @cindex cautionary accidentals, piano
1630 @cindex piano cautionary accidentals
1631 @cindex accidental style, piano cautionary
1632 @cindex cautionary accidental style, piano
1633 @cindex piano cautionary accidental style
1635 This is the same as @code{piano} but with the extra accidentals
1636 typeset as cautionaries.
1642 cis'8 fis, d'4 <a cis>8 f bis4 |
1656 \voiceTwo \relative c' {
1660 \change Staff = down
1664 \change Staff = down
1665 <fis, a cis>4 gis <f a d>2 |
1672 \context Staff = "up" {
1673 #(set-accidental-style 'piano-cautionary)
1676 \context Staff = "down" {
1686 @funindex neo-modern
1687 @cindex neo-modern accidental style
1688 @cindex accidental style, neo-modern
1690 This rule reproduces a common practice in contemporary music:
1691 accidentals are printed like with @code{modern}, but they are printed
1692 again if the same note appears later in the same measure -- except
1693 if the note is immediately repeated.
1699 cis'8 fis, d'4 <a cis>8 f bis4 |
1713 \voiceTwo \relative c' {
1717 \change Staff = down
1721 \change Staff = down
1722 <fis, a cis>4 gis <f a d>2 |
1729 \context Staff = "up" {
1730 #(set-accidental-style 'neo-modern)
1733 \context Staff = "down" {
1734 #(set-accidental-style 'neo-modern)
1741 @item neo-modern-cautionary
1743 @funindex neo-modern-cautionary
1744 @cindex neo-modern-cautionary accidental style
1745 @cindex accidental style, neo-modern-cautionary
1747 This rule is similar to @code{neo-modern}, but the extra
1748 accidentals are printed as cautionary accidentals.
1754 cis'8 fis, d'4 <a cis>8 f bis4 |
1768 \voiceTwo \relative c' {
1772 \change Staff = down
1776 \change Staff = down
1777 <fis, a cis>4 gis <f a d>2 |
1784 \context Staff = "up" {
1785 #(set-accidental-style 'neo-modern-cautionary)
1788 \context Staff = "down" {
1789 #(set-accidental-style 'neo-modern-cautionary)
1799 @funindex dodecaphonic
1800 @cindex dodecaphonic accidental style
1801 @cindex dodecaphonic style, neo-modern
1803 This rule reflects a practice introduced by composers at
1804 the beginning of the 20th century, in an attempt to
1805 abolish the hierarchy between natural and non-natural notes.
1806 With this style, @emph{every} note gets an accidental sign,
1807 including natural signs.
1813 cis'8 fis, d'4 <a cis>8 f bis4 |
1827 \voiceTwo \relative c' {
1831 \change Staff = down
1835 \change Staff = down
1836 <fis, a cis>4 gis <f a d>2 |
1843 \context Staff = "up" {
1844 #(set-accidental-style 'dodecaphonic)
1847 \context Staff = "down" {
1848 #(set-accidental-style 'dodecaphonic)
1859 @cindex accidental style, no reset
1860 @cindex no reset accidental style
1862 This is the same as @code{default} but with accidentals lasting
1863 @q{forever} and not only within the same measure:
1869 cis'8 fis, d'4 <a cis>8 f bis4 |
1883 \voiceTwo \relative c' {
1887 \change Staff = down
1891 \change Staff = down
1892 <fis, a cis>4 gis <f a d>2 |
1899 \context Staff = "up" {
1900 #(set-accidental-style 'no-reset)
1903 \context Staff = "down" {
1904 #(set-accidental-style 'no-reset)
1914 @cindex forget accidental style
1915 @cindex accidental style, forget
1917 This is the opposite of @code{no-reset}: Accidentals are not
1918 remembered at all -- and hence all accidentals are typeset
1919 relative to the key signature, regardless of what came before in
1920 the music. Unlike @code{dodecaphonic}, this rule never prints
1927 cis'8 fis, d'4 <a cis>8 f bis4 |
1941 \voiceTwo \relative c' {
1945 \change Staff = down
1949 \change Staff = down
1950 <fis, a cis>4 gis <f a d>2 |
1957 \context Staff = "up" {
1958 #(set-accidental-style 'forget)
1961 \context Staff = "down" {
1962 #(set-accidental-style 'forget)
1972 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
1973 {dodecaphonic-style-accidentals-for-each-note-including-naturals.ly}
1981 Internals Reference:
1982 @rinternals{Accidental},
1983 @rinternals{Accidental_engraver},
1984 @rinternals{GrandStaff} and
1985 @rinternals{PianoStaff},
1987 @rinternals{AccidentalSuggestion},
1988 @rinternals{AccidentalPlacement},
1989 @rinternals{accidental-suggestion-interface}.
1992 @cindex accidentals and simultaneous notes
1993 @cindex simultaneous notes and accidentals
1994 @cindex accidentals in chords
1995 @cindex chords, accidentals in
1999 Simultaneous notes are considered to be entered in sequential
2000 mode. This means that in a chord the accidentals are typeset as
2001 if the notes in the chord happen one at a time, in the order in
2002 which they appear in the input file. This is a problem when
2003 accidentals in a chord depend on each other, which does not happen
2004 for the default accidental style. The problem can be solved by
2005 manually inserting@tie{}@code{!} and@tie{}@code{?} for the
2010 @unnumberedsubsubsec Ambitus
2013 @cindex range of pitches
2016 The term @notation{ambitus} (pl. ambitus) denotes a range of
2017 pitches for a given voice in a part of music. It may also denote
2018 the pitch range that a musical instrument is capable of playing.
2019 Ambitus are printed on vocal parts so that performers can easily
2020 determine if it matches their capabilities.
2022 Ambitus are denoted at the beginning of a piece near the initial
2023 clef. The range is graphically specified by two note heads that
2024 represent the lowest and highest pitches. Accidentals are only
2025 printed if they are not part of the key signature.
2027 @lilypond[verbatim,quote]
2031 \consists "Ambitus_engraver"
2044 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
2045 {adding-ambitus-per-voice.ly}
2047 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
2048 {ambitus-with-multiple-voices.ly}
2059 Internals Reference:
2060 @rinternals{Ambitus_engraver},
2063 @rinternals{Ambitus},
2064 @rinternals{AmbitusAccidental},
2065 @rinternals{AmbitusLine},
2066 @rinternals{AmbitusNoteHead},
2067 @rinternals{ambitus-interface}.
2072 There is no collision handling in the case of multiple per-voice
2077 @subsection Note heads
2079 This section suggests ways of altering note heads.
2082 * Special note heads::
2083 * Easy notation note heads::
2084 * Shape note heads::
2088 @node Special note heads
2089 @unnumberedsubsubsec Special note heads
2091 @cindex note heads, special
2092 @cindex note heads, cross
2093 @cindex note heads, diamond
2094 @cindex note heads, parlato
2095 @cindex note heads, harmonic
2096 @cindex note heads, guitar
2097 @cindex special note heads
2098 @cindex cross note heads
2099 @cindex diamond note heads
2100 @cindex parlato note heads
2101 @cindex harmonic note heads
2102 @cindex guitar note heads
2103 @cindex note head styles
2104 @cindex styles, note heads
2107 Note heads may be altered:
2109 @lilypond[verbatim,quote,relative=2]
2111 \override NoteHead #'style = #'cross
2113 \revert NoteHead #'style
2117 There is a shorthand for diamond shapes which can only be used
2120 @lilypond[verbatim,quote,relative=2]
2121 <c f\harmonic>2 <d a'\harmonic>4 <c g'\harmonic>
2125 To see all note head styles, see @ref{Note head styles}.
2133 @ref{Note head styles},
2134 @ref{Chorded notes}.
2136 Internals Reference:
2137 @rinternals{note-event},
2138 @rinternals{Note_heads_engraver},
2139 @rinternals{Ledger_line_engraver},
2140 @rinternals{NoteHead},
2141 @rinternals{LedgerLineSpanner},
2142 @rinternals{note-head-interface},
2143 @rinternals{ledger-line-spanner-interface}.
2146 @node Easy notation note heads
2147 @unnumberedsubsubsec Easy notation note heads
2149 @cindex note heads, practice
2150 @cindex practice note heads
2151 @cindex note heads, easy notation
2152 @cindex easy notation
2154 @cindex beginners' music
2155 @cindex music, beginners'
2156 @cindex easy play note heads
2157 @cindex note heads, easy play
2159 The @q{easy play} note head includes a note name inside the head.
2160 It is used in music for beginners. To make the letters readable,
2161 it should be printed in a large font size. To print with a larger
2162 font, see @ref{Setting the staff size}.
2164 @lilypond[verbatim,quote]
2165 #(set-global-staff-size 26)
2177 @funindex \easyHeadsOn
2178 @funindex \easyHeadsOff
2179 @code{\easyHeadsOn}, @code{\easyHeadsOff}
2184 @ref{Setting the staff size}.
2189 Internals Reference:
2190 @rinternals{note-event},
2191 @rinternals{Note_heads_engraver},
2192 @rinternals{NoteHead},
2193 @rinternals{note-head-interface}.
2196 @node Shape note heads
2197 @unnumberedsubsubsec Shape note heads
2199 @cindex note heads, shape
2200 @cindex note heads, Aiken
2201 @cindex note heads, sacred harp
2203 @cindex Aiken shape note heads
2204 @cindex sacred harp note heads
2206 @funindex \aikenHeads
2207 @funindex \sacredHarpHeads
2209 In shape note head notation, the shape of the note head
2210 corresponds to the harmonic function of a note in the scale. This
2211 notation was popular in nineteenth-century American song books.
2212 Shape note heads can be produced:
2214 @lilypond[verbatim,quote,relative=2]
2221 Shapes are typeset according to the step in the scale, where the
2222 base of the scale is determined by the @code{\key} command.
2226 @funindex \aikenHeads
2227 @funindex \sacredHarpHeads
2228 @code{\aikenHeads}, @code{\sacredHarpHeads}
2232 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
2233 {applying-note-head-styles-depending-on-the-step-of-the-scale.ly}
2236 To see all note head styles, see @ref{Note head styles}.
2244 @ref{Note head styles}.
2246 Internals Reference:
2247 @rinternals{note-event},
2248 @rinternals{Note_heads_engraver},
2249 @rinternals{NoteHead},
2250 @rinternals{note-head-interface}.
2254 @unnumberedsubsubsec Improvisation
2256 @cindex improvisation
2257 @cindex slashed note heads
2258 @cindex note heads, improvisation
2259 @cindex note heads, slashed
2261 Improvisation is sometimes denoted with slashed note heads, where
2262 the performer may choose any pitch but should play the specified
2263 rhythm. Such note heads can be created:
2265 @lilypond[verbatim,quote,relative=2]
2267 \consists "Pitch_squash_engraver"
2269 e8 e g a a16( bes) a8 g
2282 @funindex \improvisationOn
2283 @funindex \improvisationOff
2285 @code{\improvisationOn}, @code{\improvisationOff}
2292 Internals Reference:
2293 @rinternals{Pitch_squash_engraver},
2295 @rinternals{RhythmicStaff}.