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. For details, see the Contributors'
7 Guide, node Updating translation committishes..
12 @node Editorial annotations
13 @section Editorial annotations
15 @lilypondfile[quote]{editorial-headword.ly}
17 This section discusses the various ways to change the appearance of
18 notes and add analysis or educational emphasis.
26 @node Inside the staff
27 @subsection Inside the staff
29 This section discusses how to add emphasis to elements that are
33 * Selecting notation font size::
34 * Fingering instructions::
41 @node Selecting notation font size
42 @unnumberedsubsubsec Selecting notation font size
44 @cindex font size (notation) scaling
45 @cindex font size (notation)
46 @cindex selecting font size (notation)
47 @cindex notation font size
66 The font size of notation elements may be altered. It does not
67 change the size of variable symbols, such as beams or slurs.
69 @warning{For font sizes of text, see
70 @ref{Selecting font and font size}.}
72 @lilypond[verbatim,quote,relative=2]
87 Internally, this sets the @code{fontSize} property. This in turn
88 causes the @code{font-size} property to be set in all layout
89 objects. The value of @code{font-size} is a number indicating the
90 size relative to the standard size for the current staff height.
91 Each step up is an increase of approximately 12% of the font size.
92 Six steps is exactly a factor of two. The Scheme function
93 @code{magstep} converts a @code{font-size} number to a scaling
94 factor. The @code{font-size} property can also be set directly,
95 so that only certain layout objects are affected.
97 @lilypond[verbatim,quote,relative=2]
100 \override NoteHead #'font-size = #-4
102 \override Script #'font-size = #2
104 \override Stem #'font-size = #-5
108 @cindex standard font size (notation)
109 @cindex font size (notation), standard
111 @funindex font-interface
114 Font size changes are achieved by scaling the design size that is
115 closest to the desired size. The standard font size (for
116 @w{@code{font-size = #0}}) depends on the standard staff height.
117 For a 20pt staff, a 10pt font is selected.
119 The @code{font-size} property can only be set on layout objects
120 that use fonts. These are the ones supporting the
121 @code{font-interface} layout interface.
136 @rlsr{Editorial annotations}.
139 @rinternals{font-interface}.
142 @node Fingering instructions
143 @unnumberedsubsubsec Fingering instructions
146 @cindex finger change
151 Fingering instructions can be entered using
152 @var{note}-@var{digit}:
154 @lilypond[verbatim,quote,relative=2]
158 Markup texts may be used for finger changes.
160 @lilypond[verbatim,quote,relative=2]
161 c4-1 d-2 f-4 c^\markup { \finger "2 - 3" }
169 A thumb-script can be added (e.g., in cello music) to indicate
170 that a note should be played with the thumb.
172 @lilypond[verbatim,quote,relative=2]
173 <a_\thumb a'-3>2 <b_\thumb b'-3>
176 @cindex fingering chords
177 @cindex fingering instructions for chords
178 @cindex chords, fingering
180 Fingerings for chords can also be added to individual notes of the
181 chord by adding them after the pitches.
183 @lilypond[verbatim,quote,relative=2]
184 <c-1 e-2 g-3 b-5>2 <d-1 f-2 a-3 c-5>
187 Fingering instructions may be manually placed above or below the
188 staff, see @ref{Direction and placement}.
192 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
193 {controlling-the-placement-of-chord-fingerings.ly}
195 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
196 {allowing-fingerings-to-be-printed-inside-the-staff.ly}
198 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
199 {avoiding-collisions-with-chord-fingerings.ly}
204 @ref{Direction and placement}
207 @rlsr{Editorial annotations}.
210 @rinternals{FingeringEvent},
211 @rinternals{fingering-event},
212 @rinternals{Fingering_engraver},
213 @rinternals{New_fingering_engraver},
214 @rinternals{Fingering}.
218 @unnumberedsubsubsec Hidden notes
221 @cindex invisible notes
222 @cindex transparent notes
223 @cindex notes, hidden
224 @cindex notes, invisible
225 @cindex notes, transparent
229 @funindex \unHideNotes
230 @funindex unHideNotes
232 Hidden (or invisible or transparent) notes can be useful in
233 preparing theory or composition exercises.
235 @lilypond[verbatim,quote,relative=2]
247 Notation objects which are attached to invisible notes are still
250 @lilypond[verbatim,quote,relative=2]
265 @rlearning{Visibility and color of objects}.
268 @ref{Invisible rests},
269 @ref{Visibility of objects},
273 @rlsr{Editorial annotations}.
276 @rinternals{Note_spacing_engraver},
277 @rinternals{NoteSpacing}.
280 @node Coloring objects
281 @unnumberedsubsubsec Coloring objects
283 @cindex colored objects
284 @cindex objects, colored
286 @cindex coloring objects
287 @cindex colored notes
288 @cindex coloring notes
289 @cindex notes, colored
295 @funindex \with-color
299 Individual objects may be assigned colors. Valid color names
300 are listed in the @ref{List of colors}.
302 @lilypond[verbatim,quote,relative=2]
303 \override NoteHead #'color = #red
305 \override NoteHead #'color = #(x11-color 'LimeGreen)
307 \override Stem #'color = #blue
312 The full range of colors defined for X11 can be accessed by using
313 the Scheme function @code{x11-color}. The function takes one
314 argument; this can be a symbol in the form @var{'FooBar} or a
315 string in the form @var{"FooBar"}. The first form is quicker to
316 write and is more efficient. However, using the second form it is
317 possible to access X11 colors by the multi-word form of its name.
319 If @code{x11-color} cannot make sense of the parameter then the
320 color returned defaults to black.
322 @lilypond[verbatim,quote,relative=2]
323 \override Staff.StaffSymbol #'color = #(x11-color 'SlateBlue2)
324 \set Staff.instrumentName = \markup {
325 \with-color #(x11-color 'navy) "Clarinet"
329 \override Beam #'color = #(x11-color "medium turquoise")
331 \override Accidental #'color = #(x11-color 'DarkRed)
333 \override NoteHead #'color = #(x11-color "LimeGreen")
335 % this is deliberate nonsense; note that the stems remain black
336 \override Stem #'color = #(x11-color 'Boggle)
346 Exact RGB colors can be specified using the Scheme function
349 @lilypond[verbatim,quote,relative=2]
350 \override Staff.StaffSymbol #'color = #(x11-color 'SlateBlue2)
351 \set Staff.instrumentName = \markup {
352 \with-color #(x11-color 'navy) "Clarinet"
355 \override Stem #'color = #(rgb-color 0 0 0)
357 \override Stem #'color = #(rgb-color 1 1 1)
359 \override Stem #'color = #(rgb-color 0 0 0.5)
366 @ref{List of colors}, @ref{The
370 @rlsr{Editorial annotations}.
374 @cindex colored notes in chords
375 @cindex notes, colored in chords
376 @cindex color in chords
381 An X11 color is not necessarily exactly the same shade as a
382 similarly named normal color.
384 Not all X11 colors are distinguishable in a web browser, i.e.,
385 a web browser might not display a difference between @code{'LimeGreen}
386 and @code{'ForestGreen}. For web use normal colors are recommended
387 (i.e., @code{#blue}, @code{#green}, @code{#red}).
390 Notes in a chord cannot be colored with @code{\override}; use
391 @code{\tweak} instead, see @ref{The tweak command}.
395 @unnumberedsubsubsec Parentheses
399 @cindex notes, parenthesized
402 @funindex \parenthesize
403 @funindex parenthesize
405 Objects may be parenthesized by prefixing @code{\parenthesize} to
406 the music event. When prefixed to a chord, it parenthesizes every
407 note. Individual notes inside a chord may also be parenthesized.
409 @lilypond[verbatim,quote,relative=2]
411 c2 \parenthesize <c e g>
412 c2 <c \parenthesize e g>
415 Non-note objects may be parenthesized as well. For articulations,
416 a hyphen is needed before the @code{\parenthesize} command.
418 @lilypond[verbatim,quote,relative=2]
419 c2-\parenthesize -. d
426 @rlsr{Editorial annotations}.
429 @rinternals{Parenthesis_engraver},
430 @rinternals{ParenthesesItem},
431 @rinternals{parentheses-interface}.
436 Parenthesizing a chord prints parentheses around each individual
437 note, instead of a single large parenthesis around the entire
442 @unnumberedsubsubsec Stems
445 @cindex stem, invisible
446 @cindex invisible stem
452 @funindex \stemNeutral
453 @funindex stemNeutral
454 @cindex stem, direction
457 @cindex stem, neutral
459 Whenever a note is found, a @code{Stem} object is created
460 automatically. For whole notes and rests, they are also created but
463 Stems may be manually placed to point up or down; see
464 @ref{Direction and placement}.
476 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
477 {default-direction-of-stems-on-the-center-line-of-the-staff.ly}
482 @ref{Direction and placement}.
485 @rlsr{Editorial annotations}.
488 @rinternals{Stem_engraver},
490 @rinternals{stem-interface}.
493 @node Outside the staff
494 @subsection Outside the staff
496 This section discusses how to add emphasis to elements in the staff
497 from outside of the staff.
502 * Analysis brackets::
506 @unnumberedsubsubsec Balloon help
509 @cindex notation, explaining
511 @cindex help, balloon
513 @funindex \balloonGrobText
514 @funindex \balloonText
515 @funindex Balloon_engraver
516 @funindex balloonGrobText
517 @funindex balloonText
518 @funindex \balloonLengthOn
519 @funindex balloonLengthOn
520 @funindex \balloonLengthOff
521 @funindex balloonLengthOff
523 Elements of notation can be marked and named with the help of a
524 square balloon. The primary purpose of this feature is to explain
527 @lilypond[verbatim,quote,relative=2]
528 \new Voice \with { \consists "Balloon_engraver" }
530 \balloonGrobText #'Stem #'(3 . 4) \markup { "I'm a Stem" }
532 \balloonGrobText #'Rest #'(-4 . -4) \markup { "I'm a rest" }
534 <c, g'-\balloonText #'(-2 . -2) \markup { "I'm a note head" } c>2.
539 There are two music functions, @code{balloonGrobText} and
540 @code{balloonText}; the former is used like
541 @w{@code{\once \override}} to attach text to any grob, and the
542 latter is used like @code{\tweak}, typically within chords, to
543 attach text to an individual note.
545 Balloon text normally influences note spacing, but this can be
548 @lilypond[verbatim,quote,relative=2]
549 \new Voice \with { \consists "Balloon_engraver" }
552 \balloonGrobText #'Stem #'(3 . 4) \markup { "I'm a Stem" }
554 \balloonGrobText #'Rest #'(-4 . -4) \markup { "I'm a rest" }
557 <c, g'-\balloonText #'(-2 . -2) \markup { "I'm a note head" } c>2.
563 @code{\balloonLengthOn},
564 @code{\balloonLengthOff}.
570 @rlsr{Editorial annotations}.
573 @rinternals{Balloon_engraver},
574 @rinternals{BalloonTextItem},
575 @rinternals{balloon-interface}.
579 @unnumberedsubsubsec Grid lines
583 @cindex vertical lines between staves
584 @cindex lines, vertical between staves
586 @funindex Grid_point_engraver
587 @funindex Grid_line_span_engraver
588 @funindex gridInterval
590 Vertical lines can be drawn between staves synchronized with the
593 The @code{Grid_point_engraver} must be used to create the end
594 points of the lines, while the @code{Grid_line_span_engraver} must
595 be used to actually draw the lines. By default this centers grid
596 lines horizontally below and to the left side of each note head.
597 Grid lines extend from the middle lines of each staff. The
598 @code{gridInterval} must specify the duration between the grid
601 @lilypond[verbatim,quote]
605 \consists "Grid_point_engraver"
606 gridInterval = #(ly:make-moment 1 4)
610 \consists "Grid_line_span_engraver"
616 \new Staff \relative c'' {
620 \new Staff \relative c {
631 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
632 {grid-lines--changing-their-appearance.ly}
637 @rlsr{Editorial annotations}.
640 @rinternals{Grid_line_span_engraver},
641 @rinternals{Grid_point_engraver},
642 @rinternals{GridLine},
643 @rinternals{GridPoint},
644 @rinternals{grid-line-interface},
645 @rinternals{grid-point-interface}.
648 @node Analysis brackets
649 @unnumberedsubsubsec Analysis brackets
652 @cindex bracket, phrasing
653 @cindex phrasing bracket
654 @cindex musicological analysis
655 @cindex analysis, musicological
656 @cindex note grouping bracket
657 @cindex horizontal bracket
658 @cindex bracket, horizontal
660 @funindex Horizontal_bracket_engraver
661 @funindex \startGroup
666 Brackets are used in musical analysis to indicate structure in musical
667 pieces. Simple horizontal brackets are supported.
669 @lilypond[verbatim,quote]
673 \consists "Horizontal_bracket_engraver"
682 Analysis brackets may be nested.
684 @lilypond[verbatim,quote]
688 \consists "Horizontal_bracket_engraver"
692 c4\startGroup\startGroup
695 d4\stopGroup\stopGroup
702 @rlsr{Editorial annotations}.
705 @rinternals{Horizontal_bracket_engraver},
706 @rinternals{HorizontalBracket},
707 @rinternals{horizontal-bracket-interface},