]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-a-figured-bass-above-or-below-the-notes.ly
Imported Upstream version 2.16.0
[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.dsi.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.16.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 @code{BassFigureAlignmentPositioning
15 #'direction} property (exclusively in a @code{Staff} context). Choices
16 are @code{#UP} (or @code{#1}), @code{#CENTER} (or @code{#0}) and
17 @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 }
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 \score {
44   <<
45     \new Staff = bassStaff \bass
46     \context Staff = bassStaff \continuo
47   >>
48 }