Jump to content

Adjusting figured bass alteration glyphs: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 3: Line 3:
To change that, pass an alist to <code>figuredBassPlusStrokedAlist</code> and set the glyph in question to <code>#f</code> (or omit it).
To change that, pass an alist to <code>figuredBassPlusStrokedAlist</code> and set the glyph in question to <code>#f</code> (or omit it).


<lilypond version="2.24.0">
<lilypond version="2.24">
\figures {
\figures {
   \set figuredBassPlusDirection = #RIGHT
   \set figuredBassPlusDirection = #RIGHT

Revision as of 18:47, 16 November 2025

In figured bass, specially designed glyphs for 6\\, 7\\, and 9\\ are used by default. Similarly, specially designed glyphs for symbols 2\+, 4\+, and 5\+ are used by default if plus signs appear after the number.

To change that, pass an alist to figuredBassPlusStrokedAlist and set the glyph in question to #f (or omit it).

\version "2.24"

\figures {
  \set figuredBassPlusDirection = #RIGHT
  <6\\> <7\\> <9\\> r
  <2\+> <4\+> <5\+> r

  \set figuredBassPlusStrokedAlist =
    #'((2 . "figbass.twoplus")
       ;; (4 . "figbass.fourplus")
       ;; (5 . "figbass.fiveplus")
       (6 . "figbass.sixstroked")
       ;; (7 . "figbass.sevenstroked")
       ;; (9 . "figbass.ninestroked")
      )
  <6\\> <7\\> <9\\> r
  <2\+> <4\+> <5\+> r
}