]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/adding-a-figured-bass-above-or-below-the-notes.ly
Imported Upstream version 2.18.2
[lilypond.git] / Documentation / snippets / new / adding-a-figured-bass-above-or-below-the-notes.ly
1 \version "2.17.6"
2
3 \header {
4   lsrtags = "ancient-notation, chords, contexts-and-engravers"
5
6   texidoc = "
7 When writing a figured bass, you can place the figures above or below
8 the bass notes, by defining the
9 @code{BassFigureAlignmentPositioning.direction} property (exclusively
10 in a @code{Staff} context).  Choices are @code{#UP} (or @code{#1}),
11 @code{#CENTER} (or @code{#0}) and @code{#DOWN} (or @code{#-1}).
12
13 This property can be changed as many times as you wish.  Use
14 @code{\\once \\override} if you don't want the override to apply to the
15 whole score.
16
17 "
18   doctitle = "Adding a figured bass above or below the notes"
19 }
20
21
22 bass = {
23   \clef bass
24   g4 b, c d
25   e d8 c d2
26 }
27 continuo = \figuremode {
28   <_>4 <6>4 <5/>4
29   \override Staff.BassFigureAlignmentPositioning.direction = #UP
30   %\bassFigureStaffAlignmentUp
31   < _+ >4 <6>
32   \set Staff.useBassFigureExtenders = ##t
33   \override Staff.BassFigureAlignmentPositioning.direction = #DOWN
34   %\bassFigureStaffAlignmentDown
35   <4>4. <4>8 <_+>4
36 }
37 \score {
38   <<
39     \new Staff = bassStaff \bass
40     \context Staff = bassStaff \continuo
41   >>
42 }