]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/chords.itely
Update from Carl.
[lilypond.git] / Documentation / user / chords.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @ignore
3     Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
4
5     When revising a translation, copy the HEAD committish of the
6     version that you are working on.  See TRANSLATION for details.
7 @end ignore
8
9 @c \version "2.11.38"
10
11
12 @node Chord notation
13 @section Chord notation
14
15 Chords can be entered in chord mode, which recognizes some
16 traditional European chord naming conventions.  Chord names can also
17 be displayed.  In addition, figured bass notation can be displayed.
18
19 @menu
20 * Chord mode::
21 * Displaying chords::
22 * Figured bass::
23 @end menu
24
25
26 @node Chord mode
27 @subsection Chord mode
28
29 @cindex chord chords
30
31 Chord mode is used to enter chords using an indicator of the chord
32 structure, rather than the chord pitches.
33
34 @menu
35 * Chord mode overview::
36 * Common chords::
37 * Extended and altered chords::
38 @end menu
39
40 @node Chord mode overview
41 @unnumberedsubsubsec Chord mode overview
42
43 @cindex chord names
44 @cindex chord mode
45
46 Chords can be entered as simultaneous music, as discussed in
47 @ref{Chorded notes}.
48
49 Chords can also be entered in @qq{chord mode}, which is an input
50 mode that focuses on the structures of chords in traditional
51 European music, rather than on specific pitches.  This is
52 convenient for those who are familiar with using chord names to
53 describe chords.  More information on different input modes can be
54 found at @ref{Input modes}.
55
56 @lilypond[verbatim,quote,ragged-right,relative=1]
57 \chordmode { c1 g a g c }
58 @end lilypond
59
60 Chords entered using chord mode are music elements, and can be
61 transposed just like chords entered using simultaneous music.
62
63 Chord mode and note mode can be mixed in sequential music:
64
65 @lilypond[verbatim,quote,ragged-right,relative=1]
66 <c e g>2 < g b d >
67 \chordmode { c2 f}
68 < c e g > < g' b d >
69 \chordmode { f g}
70 @end lilypond
71
72
73 @seealso
74
75 Music Glossary:
76 @rglos{chord}.
77
78 Notation Reference:
79 @ref{Chorded notes},
80 @ref{Input modes}.
81
82 Snippets:
83 @rlsr{Chords}
84
85 @knownissues
86
87 When chord mode and note mode are mixed in sequential music, and
88 chord mode comes first, the note mode will create a new @code{Staff}
89 context.
90
91 @lilypond[verbatim,quote,ragged-right,relative=1]
92 \chordmode { c2 f}
93 < c e g > < g' b d >
94 @end lilypond
95
96 To avoid this behavior, explicitly create the @code{Staff} context:
97
98 @lilypond[verbatim,quote,ragged-right,relative=1]
99 \new Staff {
100   \chordmode { c2 f}
101   < c e g > < g' b d >
102 }
103 @end lilypond
104
105 @node Common chords
106 @unnumberedsubsubsec Common chords
107
108 @cindex triads
109 @cindex seventh chords
110 @cindex root of chord
111 @cindex modifiers, in chords.
112 @cindex chord quality
113
114 Major triads are entered by including the root and an
115 optional duration:
116
117 @lilypond[verbatim,quote,relative=1,ragged-right]
118 \chordmode { c2 f4 g }
119 @end lilypond
120
121 Minor, augmented, and diminished triads are entered by placing
122 @code{:} and a quality modifier string after the duration:
123
124 @lilypond[verbatim,quote,ragged-right,relative=1]
125 \chordmode { c2:m f4:aug g:dim }
126 @end lilypond
127
128 Seventh chords can be created:
129
130 @lilypond[quote,ragged-right,fragment,verbatim,relative=1]
131 \chordmode { c1:7 c:m7 c:maj7 c:dim7 c:aug7 }
132 @end lilypond
133
134 @funindex aug
135 @funindex dim
136 @funindex maj
137 @funindex m
138
139 The table belows shows the actions of the quality modifiers on
140 triads and seventh chords.
141
142 @table @code
143
144 @item m
145 The minor chord.  This modifier lowers the 3rd and (if present) the
146 7th step.
147
148 @item dim
149 The diminished chord.  This modifier lowers the 3rd, 5th and (if
150 present) the 7th step.
151
152 @item aug
153 The augmented chord.  This modifier raises the 5th step.
154
155 @item maj
156 The major 7th chord.  This modifier adds a raised 7th step.  The
157 @code{7} following @code{maj} is optional.  Do NOT use this modifier
158 to create a major triad.
159
160 @end table
161
162 @c TODO -- perhaps add warning about c and c:maj being different, while
163 @c   c:maj and c:maj7 are the same
164
165 @seealso
166
167 Snippets:
168 @rlsr{Chords}
169
170 @node Extended and altered chords
171 @unnumberedsubsubsec Extended and altered chords
172
173 @cindex extended chords
174 @cindex altered chords
175
176 Chord structures of arbitrary complexity can be created in chord
177 mode.  The modifier string can be used to extend a chord, add or
178 remove chord steps, raise or lower chord steps, and add a bass note
179 or create an inversion.
180
181 The first number following the @code{:} is taken to be the extent
182 of the chord.  The chord is constructed by sequentially adding
183 thirds to the root until the specified number has been reached.
184 If the extent is not a third (e.g., 6), thirds are added up to the
185 highest third below the extent, and then the step of the extent is
186 added.  The largest possible value for the extent is 13.  Any
187 larger value is interpreted as 13.
188
189 @lilypond[quote,ragged-right,fragment,verbatim,relative=1]
190 \chordmode {
191   c:2 c:3 c:4 c:5
192   c:6 c:7 c:8 c:9
193   c:10 c:11 c:12 c:13
194 }
195 @end lilypond
196
197 @noindent
198 Note that @code{c:5} is identical to @code{c}; it produces a C major triad.
199
200 Since an unaltered 11 does not sound good when combined with an
201 unaltered 13, the 11 is removed from a @code{:13} chord (unless it
202 is added explicitly).
203
204 @lilypond[quote,ragged-right,fragment,verbatim,relative=1]
205 \chordmode {
206   c1:13 c:13.11 c:m13
207 }
208 @end lilypond
209
210 @cindex additions, in chords
211
212 Individual steps can be added to a chord.  Additions follow the
213 extent and are prefixed by a dot (@code{.}).
214
215 @lilypond[quote,verbatim,fragment,relative=1]
216 \chordmode {
217   c1:5.6 c:3.7.8 c:3.6.13
218 }
219 @end lilypond
220
221 Added steps can be as high as desired.
222
223 @lilypond[quote,verbatim,fragment,relative=1]
224 \chordmode {
225   c4:5.15 c:5.20 c:5.25 c:5.30
226 }
227 @end lilypond
228
229 @cindex chord steps, altering
230
231 Added chord steps can be altered by suffixing a @code{-} or @code{+}
232 sign to the number.  To alter a step that is automatically included
233 as part of the basic chode structure, add it as an altered step.
234
235 @lilypond[quote,verbatim,fragment,relative=1]
236 \chordmode {
237   c1:7+ c:5+.3- c:3-.5-.7-
238 }
239 @end lilypond
240
241 @cindex removals, in chords
242
243 @funindex ^
244
245 A step to be removed from the chord indicated in a
246 modifier string with a prefix of @code{^}.  Only one removal with @code{^}
247 is allowed in a modifier string.
248
249 @lilypond[quote,verbatim,fragment,relative=1]
250 \chordmode {
251   c1^3 c:7^5 c:9^3.5
252 }
253 @end lilypond
254
255 @funindex sus
256
257 The modifier @code{sus} can be added to the modifier string to
258 create suspended chords.  This removes the 3rd step from the chord.
259 Append either @code{2} or @code{4} to add the 2nd or 4th step to the
260 chord.  @code{sus} is equivalent to @code{^3}; @code{sus4} is
261 equivalent to @code{.4^3}.
262
263 @lilypond[quote,ragged-right,fragment,verbatim]
264 \chordmode {
265   c1:sus c:sus2 c:sus4 c:5.4^3
266 }
267 @end lilypond
268
269 It is possible to remove the 3rd step with @code{sus} and remove
270 another step with @code{^} in one modifier string.
271
272 @funindex /
273 @cindex chord inversions
274 @cindex bass note, for chords
275
276 Inversions (putting a pitch other than the root on the bottom of the
277 chord) and added bass notes can be specified by appending
278 @code{/}@var{pitch} to the chord.
279
280 @lilypond[quote,ragged-right,fragment,verbatim, relative=2]
281 \chordmode {
282   c1 c/g c/f
283 }
284 @end lilypond
285
286 @funindex /+
287
288 A bass note that is part of the chord can be added, instead of
289 moved as part of an inversion, by using @code{/+}@var{pitch}.
290
291 @lilypond[quote,ragged-right,fragment,verbatim]
292 \chordmode {
293   c1 c/g c/+g
294 }
295 @end lilypond
296
297 @seealso
298
299 Snippets:
300 @rlsr{Chords}
301
302 @knownissues
303
304 Each step can only be present in a chord once.  The following
305 simply produces the augmented chord, since @code{5+} is
306 interpreted last.
307
308 @lilypond[quote,ragged-right,verbatim,fragment]
309 \chordmode { c1:5.5-.5+ }
310 @end lilypond
311
312 Only one step can be removed from a chord.  If a chord with multiple
313 removed steps is desired, it must be built through addition of
314 multiple steps.
315
316 Only the first inversion can be created by adding a bass note.  The
317 second inversion requires changing the root of the chord.
318
319 @lilypond[quote,ragged-right,verbatim,fragment]
320 \chordmode {
321   c'1: c':/g e:6-3-^5 e:m6-^5
322 }
323 @end lilypond
324
325 @node Displaying chords
326 @subsection Displaying chords
327
328 Chords can be displayed by name, in addition to the standard display
329 as notes on a staff.
330
331 @menu
332 * Printing chord names::
333 * Customizing chord names::
334 @end menu
335
336 @node Printing chord names
337 @unnumberedsubsubsec Printing chord names
338
339 @cindex printing chord names
340 @cindex chord names
341 @cindex chords
342
343 Chord names are printed in the @code{ChordNames} context:
344
345 @lilypond[verbatim,quote,relative=1,ragged-right]
346 \new ChordNames {
347   \chordmode {
348     c2 f4. g8
349   }
350 }
351 @end lilypond
352
353 Chords can be entered as simultaneous notes or through the use of
354 chord mode.  The displayed chord name will be the same, regardless
355 of the mode of entry, unless there are inversions or added bass notes:
356
357 @lilypond[verbatim,quote,relative=1]
358 <<
359   \new ChordNames {
360     <c e g>2  <f bes c>
361     <f c' e g>1
362     \chordmode {
363       c2 f:sus4 c1:/f
364     }
365   }
366   {
367     <c e g>2  <f bes c>
368     <f, c' e g>1
369     \chordmode {
370       c2 f:sus4 c1:/f
371     }
372   }
373 >>
374 @end lilypond
375
376 @funindex{\chords}
377
378 @code{\chords @{ ... @}} is a shortcut notation for
379 @code{\new ChordNames @{\chordmode @{ ... @}@}}.
380
381 @lilypond[verbatim,quote,ragged-right, relative=1]
382 \chords {
383   c2 f4.:m g8:maj7
384 }
385 @end lilypond
386
387 @lilypond[verbatim,quote,ragged-right, relative=1]
388 \new ChordNames {
389   \chordmode {
390     c2 f4.:m g8:maj7
391   }
392 }
393 @end lilypond
394
395 @snippets
396
397 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
398 {showing-chords-at-changes.ly}
399
400 @c @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
401 @c {adding-bar-lines-to-chordnames-context.ly}
402
403 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
404 {simple-lead-sheet.ly}
405
406
407 @seealso
408
409 Music Glossary:
410 @rglos{chord}.
411
412
413 Notation Reference:
414 @ref{Writing music in parallel}.
415
416
417 Snippets:
418 @rlsr{Chords}.
419
420 Internals Reference:
421 @rinternals{ChordNames},
422 @rinternals{Volta_engraver},
423 @rinternals{Bar_engraver}.
424
425 @knownissues
426
427 Chords containing inversions or altered bass notes are not named
428 properly if entered using simultaneous music.
429
430
431 @node Customizing chord names
432 @unnumberedsubsubsec Customizing chord names
433
434 @cindex customizing chord names
435
436 There is no unique system for naming chords.  Different musical
437 traditions use different names for the same set of chords.  There
438 are also different symbols displayed for a given chord name.   The
439 names and symbols displayed for chord names are customizable.
440
441 @cindex Banter
442 @cindex jazz chords
443 @cindex chords, jazz
444
445 The default chord name layout is a system for Jazz music, proposed
446 by Klaus Ignatzek (see @ref{Literature list}).  There are also two
447 other chord name schemes implemented: an alternate Jazz chord
448 notation, and a systematic scheme called Banter chords.  The
449 alternate Jazz notation is also shown on the chart in @ref{Chord
450 name chart}.
451
452 In addition to the different naming systems, different note names
453 are used for the root in different languages.  The predefined
454 variables @code{\germanChords}, @code{\semiGermanChords},
455 @code{\italianChords} and @code{\frenchChords} set these variables.
456 The effect is demonstrated here:
457
458 @lilypondfile[ragged-right]{chord-names-languages.ly}
459
460 If none of the default settings give the desired output, the chord
461 name display can be tuned through the following properties.
462
463 @table @code
464
465 @funindex chordRootNamer
466
467 @item chordRootNamer
468
469 The chord name is usually printed as a letter for the root with an
470 optional alteration.  The transformation from pitch to letter is
471 done by this function.  Special note names (for example, the German
472 @q{H} for a B-chord) can be produced by storing a new function in
473 this property.
474
475 @funindex majorSevenSymbol
476
477 @item majorSevenSymbol
478
479 This property contains the markup object used to follow the output
480 of @code{chordRootNamer} to dentify a major 7 chord. Predefined
481 options are @code{whiteTriangleMarkup} and
482 @code{blackTriangleMarkup}.
483
484 @funindex chordNoteNamer
485
486 @item chordNoteNamer
487
488 When the chord name contains additional pitches other than the root
489 (e.g., an added bass note), this function is used to print the
490 additional pitch.  By default the pitch is printed using
491 @code{chordRootNamer}. The @code{chordNoteNamer} property can be set
492 to a specialized function to change this behavior.  For example, the
493 bass note can be printed in lower case.
494
495 @funindex chordNameSeparator
496
497 @item chordNameSeparator
498
499 Different parts of a chord name are normally separated by a slash.
500 By setting @code{chordNameSeparator}, you can use any desired markup
501 for a separator.
502
503 @funindex chordNameExceptions
504
505 @item chordNameExceptions
506
507 This property is a list of pairs.  The first item in each pair
508 is a set of pitches used to identify the steps present in the chord.
509 The second item is a markups that will follow the @code{chordRootNamer}
510 output to create the chord name.
511
512 @funindex chordPrefixSpacer
513 @item chordPrefixSpacer
514
515 The @q{m} for minor chords is usually printed immediately to the
516 right of the root of the chord.  By setting
517 @code{chordPrefixSpacer}, you can fix a spacer between the root
518 and @q{m}.  The spacer is not used when the root is altered.
519
520 @end table
521
522 @predefined
523
524 @funindex major seven symbols
525 @code{\whiteTriangleMarkup},
526 @code{\blackTriangleMarkup},
527 @funindex \germanChords
528 @code{\germanChords},
529 @funindex \semiGermanChords
530 @code{\semiGermanChords},
531 @funindex \italianChords
532 @code{\italianChords},
533 @funindex \frenchChords
534 @code{\frenchChords}.
535
536
537 @snippets
538
539 @cindex exceptions, chord names.
540 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
541 {chord-name-exceptions.ly}
542
543 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
544 {chord-name-major7.ly}
545
546 @c @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
547 @c {adding-bars-to-chordnames.ly)
548
549 @c @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
550 @c {volta-brackets-over-chord-names.ly}
551
552 @c TODO  convert to snippet
553 @c @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
554 @c {changing-chord-separator.ly}
555
556 The separator between different parts of a chord name
557 can be set to any markup.
558
559 @lilypond[quote,ragged-right,fragment,verbatim]
560 \chords {
561   c:7sus4
562   \set chordNameSeparator
563     = \markup { \typewriter "|" }
564   c:7sus4
565 }
566 @end lilypond
567
568
569 @seealso
570
571 Notation Reference:
572 @ref{Chord name chart}.
573
574 Installed Files:
575 @file{scm/@/chords@/-ignatzek@/.scm},
576 @file{scm/@/chord@/-entry@/.scm},
577 @file{ly/@/chord@/-modifier@/-init@/.ly}.
578
579 Snippets:
580 @rlsr{Chords}.
581
582 @c Internals Reference:
583 @c @r internals{}.
584
585 @knownissues
586
587 Chord names are determined from both the pitches that are present
588 in the chord and the information on the chord structure that may
589 have been entered in @code{\chordmode}.  If the simultaneous pitches
590 method of entering chords is used, undesired names result from
591 inversions or bass notes.
592
593 @lilypond[quote,ragged-right,verbatim]
594 myChords = \relative c' {
595   \chordmode{ c1 c/g c/f }
596   <c e g> <g c e> <f c' e g>
597 }
598 <<
599   \new ChordNames { \myChords }
600   \new Staff { \myChords }
601 >>
602 @end lilypond
603
604
605 @node Figured bass
606 @subsection Figured bass
607
608 Figured bass notation can be displayed.
609
610 @menu
611 * Introduction to figured bass::
612 * Entering figured bass::
613 * Displaying figured bass::
614 @end menu
615
616 @node Introduction to figured bass
617 @unnumberedsubsubsec Introduction to figured bass
618
619 @cindex Basso continuo
620 @cindex Thorough bass
621 @cindex Figured bass
622 @cindex Bass, thorough
623 @cindex Bass, figured
624
625 @c TODO: musicological blurb about FB
626
627 LilyPond has support for figured bass, also called thorough bass
628 or basso continuo:
629
630 @lilypond[quote,ragged-right,verbatim,fragment]
631 <<
632   \new Voice { \clef bass dis4 c d ais g fis}
633   \new FiguredBass {
634     \figuremode {
635       < 6 >4 < 7\+ >8 < 6+ [_!] >
636       < 6 >4 <6 5 [3+] >
637       < _ >4 < 6 5/>4
638     }
639   }
640 >>
641 @end lilypond
642
643 The support for figured bass consists of two parts: there is an
644 input mode, introduced by @code{\figuremode}, that accepts
645 entry of bass figures, and there is a context named
646 @code{FiguredBass} that takes care of displaying
647 @code{BassFigure} objects.  Figured bass can also be displayed
648 in @code{Staff} contexts.
649
650 @code{\figures@{ ... @}} is a shortcut notation for
651 @code{\new FiguredBass @{\figuremode @{ ... @}@}}.
652
653
654 Although the support for figured bass may superficially resemble chord
655 support, it is much simpler.  @code{\figuremode} mode simply
656 stores the figures and the @code{FiguredBass} context prints them
657 as entered.  There is no conversion to pitches.
658
659 Figures are created as markup texts.  Any of the standard markup
660 properties can be used to modify the display of figures.  For
661 example, the vertical spacing of the figures may be set with
662 @code{baseline-skip}.
663
664 @node Entering figured bass
665 @unnumberedsubsubsec Entering figured bass
666
667 @code{\figuremode} is used to switch the input mode to figure mode.
668 More information on different input modes can be
669 found at @ref{Input modes}.
670
671 In figure mode, a group of bass figures is delimited by
672 @code{<} and @code{>}.  The duration is entered after the @code{>}.
673
674 @lilypond[verbatim,quote,ragged-right,fragment]
675 \new FiguredBass {
676   \figuremode {
677     <4 6>2
678   }
679 }
680 @end lilypond
681
682 Accidentals (including naturals) can be added to figures:
683
684 @lilypond[verbatim,quote,ragged-right,fragment]
685 \figures {
686   <4- 6+ 7!> <5++> <3-->
687 }
688 @end lilypond
689
690 Augmented and diminished steps can be indicated.
691
692 @lilypond[verbatim,quote,ragged-right,fragment]
693 \figures {
694   <6\+ 5/> <7/>
695 }
696 @end lilypond
697
698 A backward slash through a figure (typically used for raised
699 sixth steps) can be created.
700
701 @lilypond[verbatim,quote,ragged-right,fragment]
702 \figures {
703  <6>
704 % broken:
705 %  <6\\>
706 }
707 @end lilypond
708
709
710 Vertical spaces and brackets can be be included in figures:
711
712 @lilypond[verbatim,quote,ragged-right,fragment]
713 \figures {
714   < [4 6] 8 [_! 12] >
715 }
716 @end lilypond
717
718
719 Any text markup can be inserted as a figure:
720
721 @lilypond[verbatim,quote,ragged-right,fragment]
722 \figures {
723   < 5 \markup{ \tiny \number 6 \super (1)} >
724 }
725 @end lilypond
726
727 @c TODO We need to include notes any time we use extenders to
728 @c avoid extraneous staff creation due to Staff.use... in
729 @c \bassFigureExtendersOn
730
731 Continuation lines can be used to indicate repeated figures:
732
733 @lilypond[verbatim,quote,ragged-right,fragment]
734 <<
735   {
736     \clef bass
737     e d c b,
738     e d c b,
739   }
740   \figures {
741     \bassFigureExtendersOn
742     <4 6> <3 6> <3 7> <3 7>
743     \bassFigureExtendersOff
744     <4 6> <3 6> <3 7> <3 7>
745   }
746 >>
747 @end lilypond
748
749 @noindent
750 In this case, the extender lines replace existing figures,
751 unless the continuation lines have been explicitly terminated.
752
753 @lilypond[verbatim,quote,ragged-right,fragment]
754 <<
755   \figures {
756     \bassFigureExtendersOn
757     <4 6> <4 6> <4\! 6\!> <4 6>
758   }
759   {
760     \clef bass
761     d d c c
762   }
763 >>
764 @end lilypond
765
766
767
768 @predefined
769 @cindex figured bass extender lines
770 @code{bassFigureExtendersOn}
771 @code{bassFigureExtendersOff}
772
773
774 @snippets
775 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
776 {changing-the-positions-of-figured-bass-alterations.ly}
777
778 @seealso
779 @c Music Glossary:
780 @c @rglos{}.
781
782 @c Learning Manual:
783 @c @rlearning{}.
784
785 @c Notation Reference:
786 @c @ruser{}.
787
788 @c Application Usage:
789 @c @rprogram{}.
790
791 @c Installed Files:
792 @c @file{}.
793
794 Snippets:
795 @rlsr{Chords}.
796
797 Internals Reference:
798 @rinternals{NewBassFigure},
799 @rinternals{BassFigureAlignment},
800 @rinternals{BassFigureLine},
801 @rinternals{BassFigureBracket},
802 @rinternals{BassFigureContinuation},
803 @rinternals{FiguredBass}.
804
805 @c @knownissues
806
807 @node Displaying figured bass
808 @unnumberedsubsubsec Displaying figured bass
809
810 Figured bass can be displayed using the @code{FiguredBass} context,
811 or in most staff contexts.
812
813 When displayed in a @code{FiguredBass} context, the vertical location
814 of the figures is independent of the notes on the staff.
815
816 @lilypond[verbatim,ragged-right,fragment,quote]
817 <<
818   \relative c'' {
819     c4 c'8 r8 c,4 c'
820   }
821   \new FiguredBass {
822     \figuremode {
823       <4>4 <6 10>8 s8
824       <4 6>4 <4 6>
825     }
826   }
827 >>
828 @end lilypond
829
830 @noindent
831 In the example above, the @code{FiguredBass} context must be
832 explicitly instantiated to avoid creating a second (empty) staff.
833
834
835 Figured bass can also be added to @code{Staff} contexts
836 directly.  In this case, the vertical position of the
837 figures is adjusted automatically.
838
839 @c TODO add a second paragraph to show direction change.  First
840 @c   example should be UP (default), second should be DOWN.
841
842 @c  TODO change to use predefined command once it is added to
843 @c  property-init.ly  -cds
844 @lilypond[verbatim,ragged-right,fragment,quote]
845 <<
846   \new Staff = myStaff
847   \figuremode {
848     <4>4 <6 10>8 s8
849     <4 6>4 <4 6>
850   }
851   %% Put notes on same Staff as figures
852   \context Staff = myStaff
853   {
854     \clef bass
855     c4 c'8 r8 c4 c'
856   }
857 >>
858 @end lilypond
859
860
861 When added in a Staff context, figured bass can be displayed above
862 or below the staff.
863
864 @lilypond[verbatim,ragged-right,fragment,quote]
865 <<
866   \new Staff = myStaff
867   \figuremode {
868     <4>4 <6 10>8 s8
869     \bassFigureStaffAlignmentDown
870     <4 6>4 <4 6>
871   }
872   %% Put notes on same Staff as figures
873   \context Staff = myStaff
874   {
875     \clef bass
876     c4 c'8 r8 c4 c'
877   }
878 >>
879 @end lilypond
880
881
882 @ignore
883 @c I don't understand this -cs
884 When using continuation lines, common figures are always put in the
885 same vertical position.  When this is unwanted, you can insert a rest.
886 The rest will clear any previous alignment.  For
887 example, you can write
888
889 @example
890 <4 6>8 r8
891 @end example
892
893 @noindent
894 instead of
895 @example
896 <4 6>4
897 @end example
898 @end ignore
899
900 @predefined
901 @cindex figured bass alignment
902 @code{bassFigureStaffAlignmentDown},
903 @code{bassFigureStaffAlignmentUp},
904 @code{bassFigureStaffAlignmentNeutral}.
905
906 @snippets
907
908 @seealso
909 @c Music Glossary:
910 @c @rglos{}.
911
912 @c Learning Manual:
913 @c @rlearning{}.
914
915 @c Notation Reference:
916 @c @ruser{}.
917
918 @c Application Usage:
919 @c @rprogram{}.
920
921 @c Installed Files:
922 @c @file{}.
923
924 @c Snippets:
925 @rlsr{Figured Bass}.
926
927 Internals Reference:
928 @rinternals{NewBassFigure},
929 @rinternals{BassFigureAlignment},
930 @rinternals{BassFigureLine},
931 @rinternals{BassFigureBracket},
932 @rinternals{BassFigureContinuation},
933 @rinternals{FiguredBass}.
934
935 @knownissues
936
937 To ensure that continuation lines work properly, it is
938 safest to use the same rhythm in the figure line as in
939 the bass line.
940
941 @lilypond[verbatim,ragged-right,fragment,quote]
942 <<
943   {
944     \clef bass
945     \repeat unfold 4 {f16. g32} f8. es16 d8 es
946   }
947   \figures {
948     \bassFigureExtendersOn
949     % The extenders are correct here, with the same rhythm as the bass
950     \repeat unfold 4 {<6 4->16. <6 4->32}
951     <5>8. r16 <6>8 <6\! 5->
952   }
953 >>
954 <<
955   {
956     \clef bass
957     \repeat unfold 4 {f16. g32} f8. es16 d8 es
958   }
959   \figures {
960     \bassFigureExtendersOn
961     % The extenders are incorrect here, even though the timing is the same
962     <6 4->4 <6 4->4
963     %\repeat unfold 4 {<6 4->16. <6 4->32}
964     <5>8. r16 <6>8 <6\! 5->
965   }
966 >>
967 @end lilypond
968
969 @c I have no idea what this means -cds
970 @c A predefined command for changing this has been proposed -cds
971 @c TODO -- put stacking direction snippet here -cds
972 When using figured bass above the staff with extender lines and
973 @code{implicitBassFigures} the lines may become swapped around.
974 Maintaining order consistently will be impossible when multiple figures
975 have overlapping extender lines.  To avoid this problem, please
976 use @code{stacking-dir} on @code{BassFigureAlignment}.
977
978
979 @seealso