Simon Albrecht suggested I start a new thread for this (apologies for any confusion)
Attached is a patch that fixes the centering of single bass figures over notes of duration whole note and more. The duration is tested and a translate applied horizontally if needed. A test snippet is this: 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8>< << { \time 4/2 c''\breve c'' c''1 c'' c''4 c'' c'' c'' } \new FiguredBass { \figuremode { <_+>\breve <_-> <3>1 <3+> <_+>4 <_-> <3> <3+> } } >> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8>< In version until now the single character figures are placed to the left of the true center. Richard
--- ORIG_translation-functions.scm 2017-07-08 12:36:17.716097042 +0100 +++ translation-functions.scm 2017-07-09 14:05:34.084003967 +0100 @@ -184,13 +184,10 @@ way the transposition number is displaye (set! alt-markup #f))) - ;; hmm, how to get figures centered between note, and - ;; lone accidentals too? - - ;; (if (markup? fig-markup) - ;; (set! - ;; fig-markup (markup #:translate (cons 1.0 0) - ;; #:center-align fig-markup))) + (if (and (>= 0 (ly:duration-log (ly:event-property event 'duration))) (markup? fig-markup)) + (set! + fig-markup (markup #:translate (cons 1.0 0) + #:center-align fig-markup))) (if alt-markup (set! fig-markup
_______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel