]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-a-figured-bass-above-or-below-the-notes.ly
Imported Upstream version 2.19.45
[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 LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
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 bass = {
28   \clef bass
29   g4 b, c d
30   e d8 c d2
31 }
32
33 continuo = \figuremode {
34   <_>4 <6>4 <5/>4
35   \override Staff.BassFigureAlignmentPositioning.direction = #UP
36   %\bassFigureStaffAlignmentUp
37   < _+ >4 <6>
38   \set Staff.useBassFigureExtenders = ##t
39   \override Staff.BassFigureAlignmentPositioning.direction = #DOWN
40   %\bassFigureStaffAlignmentDown
41   <4>4. <4>8 <_+>4
42 }
43
44 \score {
45   <<
46     \new Staff = bassStaff \bass
47     \context Staff = bassStaff \continuo
48   >>
49 }