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