]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/chords.itely
Merge branch 'master' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[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 Since an unaltered 11 does not sound good when combined with an
198 unaltered 13, the 11 is removed from a @code{:13} chord (unless it
199 is added explicitly).
200
201 @lilypond[quote,ragged-right,fragment,verbatim,relative=1]
202 \chordmode {
203   c1:13 c:13.11 c:m13
204 }
205 @end lilypond
206
207 @cindex additions, in chords
208
209 Individual steps can be added to a chord.  Additions follow the
210 extent and are prefixed by a dot (@code{.}).
211
212 @lilypond[quote,verbatim,fragment,relative=1]
213 \chordmode {
214   c1:5.6 c:3.7.8 c:3.6.13
215 }
216 @end lilypond
217
218 Added steps can be as high as desired.
219
220 @lilypond[quote,verbatim,fragment,relative=1]
221 \chordmode {
222   c4:5.15 c:5.20 c:5.25 c:5.30
223 }
224 @end lilypond
225
226 @cindex chord steps, altering
227
228 Added chord steps can be altered by suffixing a @code{-} or @code{+}
229 sign to the number.  To alter a step that is automatically included
230 as part of the basic chode structure, add it as an altered step.
231
232 @lilypond[quote,verbatim,fragment,relative=1]
233 \chordmode {
234   c1:7+ c:5+.3- c:3-.5-.7-
235 }
236 @end lilypond
237
238 @cindex removals, in chords
239
240 @funindex ^
241
242 A step to be removed from the chord  must come at the end of a
243 modifier string and be prefixed by @code{^}.  Only one removal with @code{^}
244 is allowed in a modifier string.
245
246 @lilypond[quote,verbatim,fragment,relative=1]
247 \chordmode {
248   c1^3 c:7^5 c:9^3.5
249 }
250 @end lilypond
251
252 @funindex sus
253
254 The modifier @code{sus} can be added to the modifier string to
255 create suspended chords.  This removes the 3rd step from the chord.
256 Append either @code{2} or @code{4} to add the 2nd or 4th step to the
257 chord.  @code{sus} is equivalent to @code{^3}; @code{sus4} is
258 equivalent to @code{.4^3}.
259
260 @lilypond[quote,ragged-right,fragment,verbatim]
261 \chordmode {
262   c1:sus c:sus2 c:sus4 c:5.4^3
263 }
264 @end lilypond
265
266 It is possible to remove the 3rd step with @code{sus} and remove
267 another step with @code{^} in one modifier string.
268
269 @funindex /
270 @cindex chord inversions
271 @cindex bass note, for chords
272
273 Inversions (putting a pitch other than the root on the bottom of the
274 chord) and added bass notes can be specified by appending
275 @code{/}@var{pitch} to the chord.
276
277 @lilypond[quote,ragged-right,fragment,verbatim, relative=2]
278 \chordmode {
279   c1 c/g c/f
280 }
281 @end lilypond
282
283 @funindex /+
284
285 A bass note that is part of the chord can be added, instead of
286 moved as part of an inversion, by using @code{/+}@var{pitch}.
287
288 @lilypond[quote,ragged-right,fragment,verbatim]
289 \chordmode {
290   c1 c/g c/+g
291 }
292 @end lilypond
293
294 @seealso
295
296 Snippets:
297 @rlsr{Chords}
298
299 @knownissues
300
301 Each step can only be present in a chord once.  The following
302 simply produces the augmented chord, since @code{5+} is
303 interpreted last.
304
305 @lilypond[quote,ragged-right,verbatim,fragment]
306 \chordmode { c1:5.5-.5+ }
307 @end lilypond
308
309 Only one step can be removed from a chord.  If a chord with multiple
310 removed steps is desired, it must be built through addition of
311 multiple steps.
312
313
314 @node Displaying chords
315 @subsection Displaying chords
316
317 Chords can be displayed by name, in addition to the standard display
318 as notes on a staff.
319
320 @menu
321 * Printing chord names::
322 * Customizing chord names::
323 @end menu
324
325 @node Printing chord names
326 @unnumberedsubsubsec Printing chord names
327
328 @cindex printing chord names
329 @cindex chord names
330 @cindex chords
331
332 Chord names are printed in the @code{ChordNames} context:
333
334 @lilypond[verbatim,quote,relative=1,ragged-right]
335 \new ChordNames {
336   \chordmode {
337     c2 f4. g8
338   }
339 }
340 @end lilypond
341
342 Chords can be entered as simultaneous notes or through the use of
343 chord mode.  The displayed chord name will be the same, regardless
344 of the mode of entry, unless there are inversions or added bass notes:
345
346 @lilypond[quote,ragged-right,verbatim]
347 <<
348   \new ChordNames {
349     <c e g>2  <f bes c>
350     <f c' e g>1
351     \chordmode {
352       c2 f:sus4 c1:/f
353     }
354   }
355   {
356     <c e g>2  <f bes c>
357     <f, c' e g>1
358     \chordmode {
359       c2 f:sus4 c1:/f
360     }
361   }
362 >>
363 @end lilypond
364
365 @funindex{\chords}
366
367 @code{\chords} is a shortcut notation for
368 @code{\new ChordNames @{\chordmode @{ ... @}@}}.
369
370 @lilypond[verbatim,quote,ragged-right, relative=1]
371 \chords {
372   c2 f4.:m g8:maj7
373 }
374 @end lilypond
375
376 @lilypond[verbatim,quote,ragged-right, relative=1]
377 \new ChordNames {
378   \chordmode {
379     c2 f4.:m g8:maj7
380   }
381 }
382 @end lilypond
383
384 @snippets
385
386 @c TODO -- replace this with a snippet
387 Chord names can be displayed only at the start of lines and when
388 the chord changes.
389
390 @lilypond[quote,verbatim,ragged-right]
391 harmonies = \chordmode {
392   c1:m c:m \break c:m c:m d
393 }
394 <<
395   \new ChordNames {
396     \set chordChanges = ##t
397     \harmonies
398   }
399   \new Staff {
400     \relative c' { \harmonies }
401   }
402 >>
403 @end lilypond
404
405 @c TODO -- replace this with a snippet
406 To add bar indications in the @code{ChordNames}
407 context, add @rinternals{Bar_engraver}.
408
409 @lilypond[ragged-right,verbatim]
410 \new ChordNames \with {
411   \override BarLine #'bar-size = #4
412   \consists "Bar_engraver"
413 }
414 \chordmode {
415   f1:maj7 f:7 bes:7 c:maj7 ees e
416 }
417 @end lilypond
418
419 @c TODO -- replace this with a snippet
420 When put together, chord names, a melody, and lyrics form a lead
421 sheet:
422
423 @lilypond[verbatim,quote,ragged-right]
424 <<
425   \chords { c2 g:sus4 f e }
426   \relative c'' {
427     a4 e c8 e r4
428     b2 c4( d)
429   }
430   \addlyrics { One day this shall be free __ }
431 >>
432 @end lilypond
433
434 @seealso
435
436 Music Glossary:
437 @rglos{chord}.
438
439
440 Notation Reference:
441 @ref{Writing music in parallel}.
442
443
444 Snippets:
445 @rlsr{Chords}.
446
447 Internals Reference:
448 @rinternals{ChordNames},
449 @rinternals{Volta_engraver},
450 @rinternals{Bar_engraver}.
451
452 @knownissues
453
454 Chords containing inversions or altered bass notes are not named
455 properly if entered using simultaneous music.
456
457
458 @node Customizing chord names
459 @unnumberedsubsubsec Customizing chord names
460
461 @cindex customizing chord names
462
463 There is no unique system for naming chords.  Different musical
464 traditions use different names for the same set of chords.  There
465 are also different symbols displayed for a given chord name.   The
466 names and symbols displayed for chord names are customizable.
467
468 @cindex Banter
469 @cindex jazz chords
470 @cindex chords, jazz
471
472 The default chord name layout is a system for Jazz music, proposed
473 by Klaus Ignatzek (see @ref{Literature list}).  There are also two
474 other chord name schemes implemented: an alternate Jazz chord
475 notation, and a systematic scheme called Banter chords.  The
476 alternate Jazz notation is also shown on the chart in @ref{Chord
477 name chart}.
478
479 In addition to the different naming systems, different note names
480 are used for the root in different languages.  The predefined
481 variables @code{\germanChords}, @code{\semiGermanChords},
482 @code{\italianChords} and @code{\frenchChords} set these variables.
483 The effect is demonstrated here:
484
485 @lilypondfile[ragged-right]{chord-names-languages.ly}
486
487 If none of the default settings give the desired output, the chord
488 name display can be tuned through the following properties.
489
490 @table @code
491
492 @funindex chordRootNamer
493
494 @item chordRootNamer
495
496 The chord name is usually printed as a letter for the root with an
497 optional alteration.  The transformation from pitch to letter is
498 done by this function.  Special note names (for example, the German
499 @q{H} for a B-chord) can be produced by storing a new function in
500 this property.
501
502 @funindex majorSevenSymbol
503
504 @item majorSevenSymbol
505
506 This property contains the markup object used to follow the output
507 of @code{chordRootNamer} to dentify a major 7 chord. Predefined
508 options are @code{whiteTriangleMarkup} and
509 @code{blackTriangleMarkup}.
510
511 @funindex chordNoteNamer
512
513 @item chordNoteNamer
514
515 When the chord name contains additional pitches other than the root
516 (e.g., an added bass note), this function is used to print the
517 additional pitch.  By default the pitch is printed using
518 @code{chordRootNamer}. The @code{chordNoteNamer} property can be set
519 to a specialized function to change this behavior.  For example, the
520 bass note can be printed in lower case.
521
522 @funindex chordNameSeparator
523
524 @item chordNameSeparator
525
526 Different parts of a chord name are normally separated by a slash.
527 By setting @code{chordNameSeparator}, you can use any desired markup
528 for a separator.
529
530 @funindex chordNameExceptions
531
532 @item chordNameExceptions
533
534 This property is a list of pairs.  The first item in each pair
535 is a set of pitches used to identify the steps present in the chord.
536 The second item is a markups that will follow the @code{chordRootNamer}
537 output to create the chord name.
538
539 @funindex chordPrefixSpacer
540 @item chordPrefixSpacer
541
542 The @q{m} for minor chords is usually printed immediately to the
543 right of the root of the chord.  By setting
544 @code{chordPrefixSpacer}, you can fix a spacer between the root
545 and @q{m}.  The spacer is not used when the root is altered.
546
547 @end table
548
549 @predefined
550
551 @funindex major seven symbols
552 @code{\whiteTriangleMarkup},
553 @code{\blackTriangleMarkup},
554 @funindex \germanChords
555 @code{\germanChords},
556 @funindex \semiGermanChords
557 @code{\semiGermanChords},
558 @funindex \italianChords
559 @code{\italianChords},
560 @funindex \frenchChords
561 @code{\frenchChords}.
562
563
564 @snippets
565 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
566 {chord-names-jazz.ly}
567
568 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
569 {chord-name-exceptions.ly}
570 @cindex exceptions, chord names.
571
572 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
573 {chord-name-major7.ly}
574
575 @c @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
576 @c {adding-bars-to-chordnames.ly)
577
578 @c @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
579 @c {volta-brackets-over-chord-names.ly}
580
581 @c TODO  convert to snippet
582 The separator between different parts of a chord name
583 can be set to any markup.
584
585 @lilypond[quote,ragged-right,fragment,verbatim]
586 \chords {
587   c:7sus4
588   \set chordNameSeparator
589     = \markup { \typewriter "|" }
590   c:7sus4
591 }
592 @end lilypond
593
594
595 @seealso
596
597 Installed Files:
598 @file{scm/@/chords@/-ignatzek@/.scm},
599 @file{scm/@/chord@/-entry@/.scm},
600 @file{ly/@/chord@/-modifier@/-init@/.ly}.
601
602 Snippets:
603 @rlsr{Chords}.
604
605 @c Internals Reference:
606 @c @r internals{}.
607
608 @knownissues
609
610 Chord names are determined from both the pitches that are present
611 in the chord and the information on the chord structure that may
612 have been entered in @code{\chordmode}.  If the simultaneous pitches
613 method of entering chords is used, undesired names result from
614 inversions or bass notes.
615
616 @lilypond[quote,ragged-right,verbatim]
617 myChords = \relative c' {
618   \chordmode{ c1 c/g c/f }
619   <c e g> <g c e> <f c' e g>
620 }
621 <<
622   \new ChordNames { \myChords }
623   \new Staff { \myChords }
624 >>
625 @end lilypond
626
627
628 @node Figured bass
629 @subsection Figured bass
630
631 Figured bass notation can be displayed.
632
633 @menu
634 * Introduction to figured bass::
635 * Entering figured bass::
636 * Displaying figured bass::
637 @end menu
638
639 @node Introduction to figured bass
640 @unnumberedsubsubsec Introduction to figured bass
641
642 @cindex Basso continuo
643 @cindex Thorough bass
644 @cindex Figured bass
645 @cindex Bass, thorough
646 @cindex Bass, figured
647
648 @c TODO: musicological blurb about FB
649
650 LilyPond has support for figured bass, also called thorough bass
651 or basso continuo:
652
653 @lilypond[quote,ragged-right,verbatim,fragment]
654 <<
655   \new Voice { \clef bass dis4 c d ais g fis}
656   \new FiguredBass {
657     \figuremode {
658       < 6 >4 < 7\+ >8 < 6+ [_!] >
659       < 6 >4 <6 5 [3+] >
660       < _ >4 < 6 5/>4
661     }
662   }
663 >>
664 @end lilypond
665
666 The support for figured bass consists of two parts: there is an
667 input mode, introduced by @code{\figuremode}, that accepts
668 entry of bass figures, and there is a context named
669 @code{FiguredBass} that takes care of displaying
670 @code{BassFigure} objects.  Figured bass can also be displayed
671 in @code{Staff} contexts.
672
673 @code{\figures@{ ... @}} is a shortcut notation for
674 @code{\new FiguredBass @{\figuremode @{ ... @}@}}.
675
676
677 Although the support for figured bass may superficially resemble chord
678 support, it is much simpler.  @code{\figuremode} mode simply
679 stores the figures and the @code{FiguredBass} context prints them
680 as entered.  There is no conversion to pitches.
681
682 Figures are created as markup texts.  Any of the standard markup
683 properties can be used to modify the display of figures.  For
684 example, the vertical spacing of the figures may be set with
685 @code{baseline-skip}.
686
687 @node Entering figured bass
688 @unnumberedsubsubsec Entering figured bass
689
690 @code{\figuremode} is used to switch the input mode to figure mode.
691 More information on different input modes can be
692 found at @ref{Input modes}.
693
694 In figure mode, a group of bass figures is delimited by
695 @code{<} and @code{>}.  The duration is entered after the @code{>}.
696
697 @lilypond[verbatim,quote,ragged-right,fragment]
698 \new FiguredBass {
699   \figuremode {
700     <4 6>2
701   }
702 }
703 @end lilypond
704
705 Accidentals can be added to figures:
706
707 @lilypond[verbatim,quote,ragged-right,fragment]
708 \figures {
709   <4- 6+ 7!> <5++> <3-->
710 }
711 @end lilypond
712
713 Plus signs, diminished fifths, and diminished sevenths
714 can be notated.
715
716 @lilypond[verbatim,quote,ragged-right,fragment]
717 \figures {
718   <6\+ 5/> <7/>
719 }
720 @end lilypond
721
722 Vertical spaces and brackets can be be included in figures:
723
724 @lilypond[verbatim,quote,ragged-right,fragment]
725 \figures {
726   < [4 6] 8 [_! 12] >
727 }
728 @end lilypond
729
730
731 Any text markup can be inserted as a figure:
732
733 @lilypond[verbatim,quote,ragged-right,fragment]
734 \figures {
735   < 5 \markup{ \tiny \number 6 \super (1)} >
736 }
737 @end lilypond
738
739 Continuation lines can be used to indicate repeated figures:
740
741 @c  \set to be replaced with predefined command once it is
742 @c   included in property-init.ly
743 @lilypond[verbatim,quote,ragged-right,fragment]
744 \figures {
745   \set useBassFigureExtenders = ##t
746   <4 6> <3 6> <3 7>
747 }
748 @end lilypond
749
750 @noindent
751 In this case, the extender lines always replace existing figures.
752
753 @c @predefined
754
755 @c @snippets
756 @c  This probably isn't notation, but rather adjusting output.  I guess this
757 @c  should be converted to a snippet?  -cds
758 Accidentals and plus signs can appear before or after the numbers,
759 depending on the @code{figuredBassAlterationDirection} and
760 @code{figuredBassPlusDirection}
761 properties
762
763 @c  TODO Need to set predefined commands for these directions as well. -cs
764 @lilypond
765   \figures {
766     <6\+> <5+> <6 4-> r
767     \set figuredBassAlterationDirection = #RIGHT
768     <6\+> <5+> <6 4-> r
769     \set figuredBassPlusDirection = #LEFT
770     <6\+> <5+> <6 4-> r
771     \set figuredBassAlterationDirection = #LEFT
772     <6\+> <5+> <6 4-> r
773   }
774 @end lilypond
775
776 @seealso
777 @c Music Glossary:
778 @c @rglos{}.
779
780 @c Learning Manual:
781 @c @rlearning{}.
782
783 @c Notation Reference:
784 @c @ruser{}.
785
786 @c Application Usage:
787 @c @rprogram{}.
788
789 @c Installed Files:
790 @c @file{}.
791
792 Snippets:
793 @rlsr{Figured Bass}.
794
795 @c Internals Reference:
796 @rinternals{NewBassFigure},
797 @rinternals{BassFigureAlignment},
798 @rinternals{BassFigureLine},
799 @rinternals{BassFigureBracket},
800 @rinternals{BassFigureContinuation},
801 @rinternals{FiguredBass}.
802
803 @c @knownissues
804
805 @node Displaying figured bass
806 @unnumberedsubsubsec Displaying figured bass
807
808 Figured bass can be displayed using the @code{FiguredBass} context,
809 or in most staff contexts.
810
811 When displayed in a @code{FiguredBass} context, the vertical location
812 of the figures is independent of the notes on the staff.
813
814 @lilypond[verbatim,ragged-right,fragment,quote]
815 <<
816   \relative c'' {
817     c4 c'8 r8 c,4 c'
818   }
819   \new FiguredBass {
820     \figuremode {
821       <4>4 <6 10>8 s8
822       <4 6>4 <4 6>
823     }
824   }
825 >>
826 @end lilypond
827
828 @noindent
829 In the example above, the @code{FiguredBass} context must be
830 explicitly instantiated to avoid creating a second (empty) staff.
831
832
833 Figured bass can also be added to @code{Staff} contexts
834 directly.  In this case, the vertical position of the
835 figures is adjusted automatically.
836
837 @c  TODO change to use predefined command once it is added to
838 @c  property-init.ly  -cds
839 @lilypond[verbatim,ragged-right,fragment,quote]
840 <<
841   \new Staff = myStaff
842   \figuremode {
843     \override Staff.BassFigureAlignmentPositioning #'direction = #DOWN
844     <4>4 <6 10>8 s8
845     <4 6>4 <4 6>
846   }
847   %% Put notes on same Staff as figures
848   \context Staff = myStaff
849   \relative c'' {
850     c4 c'8 r8 c,4 c'
851   }
852 >>
853 @end lilypond
854
855
856 @ignore
857 @c I don't understand this -cs
858 When using continuation lines, common figures are always put in the
859 same vertical position.  When this is unwanted, you can insert a rest.
860 The rest will clear any previous alignment.  For
861 example, you can write
862
863 @example
864 <4 6>8 r8
865 @end example
866
867 @noindent
868 instead of
869 @example
870 <4 6>4
871 @end example
872 @end ignore
873
874 @c @predefined
875
876 @c @snippets
877
878 @seealso
879 @c Music Glossary:
880 @c @rglos{}.
881
882 @c Learning Manual:
883 @c @rlearning{}.
884
885 @c Notation Reference:
886 @c @ruser{}.
887
888 @c Application Usage:
889 @c @rprogram{}.
890
891 @c Installed Files:
892 @c @file{}.
893
894 @c Snippets:
895 @rlsr{Figured Bass}.
896
897 Internals Reference:
898 @rinternals{NewBassFigure},
899 @rinternals{BassFigureAlignment},
900 @rinternals{BassFigureLine},
901 @rinternals{BassFigureBracket},
902 @rinternals{BassFigureContinuation},
903 @rinternals{FiguredBass}.
904
905 @knownissues
906
907 To ensure that continuation lines work properly, it is
908 safest to use the same rhythm in the figure line as in
909 the bass line.
910
911 @lilypond[verbatim,ragged-right,fragment,quote]
912 <<
913   {
914     \clef bass
915     \repeat unfold 4 {f16. g32} f8. es16 d8 es
916   }
917   \figures {
918     \set useBassFigureExtenders = ##t
919     % The extenders are correct here, with the same rhythm as the bass
920     \repeat unfold 4 {<6 4->16. <6 4->32}
921     <5>8. r16 <6>8 <6\! 5->
922   }
923 >>
924 <<
925   {
926     \clef bass
927     \repeat unfold 4 {f16. g32} f8. es16 d8 es
928   }
929   \figures {
930     \set useBassFigureExtenders = ##t
931     % The extenders are incorrect here, even though the timing is the same
932     <6 4->4 <6 4->4
933     %\repeat unfold 4 {<6 4->16. <6 4->32}
934     <5>8. r16 <6>8 <6\! 5->
935   }
936 >>
937 @end lilypond
938
939 @c I have no idea what this means -cds
940 @c A predefined command for changing this has been proposed -cds
941 When using figured bass above the staff with extender lines and
942 @code{implicitBassFigures} the lines may become swapped around.
943 Maintaining order consistently will be impossible when multiple figures
944 have overlapping extender lines.  To avoid this problem, please
945 use @code{stacking-dir} on @code{BassFigureAlignment}.
946
947
948 @seealso