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