]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-a-figured-bass-above-or-below-the-notes.ly
Doc: run makelsr locally.
[lilypond.git] / Documentation / snippets / adding-a-figured-bass-above-or-below-the-notes.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 \version "2.17.6"
8
9 \header {
10   lsrtags = "ancient-notation, chords, contexts-and-engravers"
11
12   texidoc = "
13 When writing a figured bass, you can place the figures above or below
14 the bass notes, by defining the
15 @code{BassFigureAlignmentPositioning.direction} property (exclusively
16 in a @code{Staff} context).  Choices are @code{#UP} (or @code{#1}),
17 @code{#CENTER} (or @code{#0}) and @code{#DOWN} (or @code{#-1}).
18
19 This property can be changed as many times as you wish.  Use
20 @code{\\once \\override} if you don't want the override to apply to the
21 whole score.
22
23 "
24   doctitle = "Adding a figured bass above or below the notes"
25 } % begin verbatim
26
27
28 bass = {
29   \clef bass
30   g4 b, c d
31   e d8 c d2
32 } % begin verbatim
33
34 continuo = \figuremode {
35   <_>4 <6>4 <5/>4
36   \override Staff.BassFigureAlignmentPositioning.direction = #UP
37   %\bassFigureStaffAlignmentUp
38   < _+ >4 <6>
39   \set Staff.useBassFigureExtenders = ##t
40   \override Staff.BassFigureAlignmentPositioning.direction = #DOWN
41   %\bassFigureStaffAlignmentDown
42   <4>4. <4>8 <_+>4
43 }
44 \score {
45   <<
46     \new Staff = bassStaff \bass
47     \context Staff = bassStaff \continuo
48   >>
49 }