]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/adding-a-figured-bass-above-or-below-the-notes.ly
Imported Upstream version 2.18.0
[lilypond.git] / Documentation / snippets / new / adding-a-figured-bass-above-or-below-the-notes.ly
diff --git a/Documentation/snippets/new/adding-a-figured-bass-above-or-below-the-notes.ly b/Documentation/snippets/new/adding-a-figured-bass-above-or-below-the-notes.ly
new file mode 100644 (file)
index 0000000..71dcf28
--- /dev/null
@@ -0,0 +1,48 @@
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.dsi.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.17.6"
+
+\header {
+  lsrtags = "ancient-notation, chords, contexts-and-engravers"
+
+  texidoc = "
+When writing a figured bass, you can place the figures above or below
+the bass notes, by defining the
+@code{BassFigureAlignmentPositioning.direction} property (exclusively
+in a @code{Staff} context).  Choices are @code{#UP} (or @code{#1}),
+@code{#CENTER} (or @code{#0}) and @code{#DOWN} (or @code{#-1}).
+
+This property can be changed as many times as you wish.  Use
+@code{\\once \\override} if you don't want the override to apply to the
+whole score.
+
+"
+  doctitle = "Adding a figured bass above or below the notes"
+} % begin verbatim
+
+
+bass = {
+  \clef bass
+  g4 b, c d
+  e d8 c d2
+}
+continuo = \figuremode {
+  <_>4 <6>4 <5/>4
+  \override Staff.BassFigureAlignmentPositioning.direction = #UP
+  %\bassFigureStaffAlignmentUp
+  < _+ >4 <6>
+  \set Staff.useBassFigureExtenders = ##t
+  \override Staff.BassFigureAlignmentPositioning.direction = #DOWN
+  %\bassFigureStaffAlignmentDown
+  <4>4. <4>8 <_+>4
+}
+\score {
+  <<
+    \new Staff = bassStaff \bass
+    \context Staff = bassStaff \continuo
+  >>
+}