I thought my code didn't work but it looks like it does. Sorry for the unnecessary replies. Use case: Chromatic enharmonic tied notes where normally Lilypond wouldn't work correctly. (Ties don't show up if you don't use this hack). The problem is that my half-solution ruins the spacing.
#(define enhf-acc (lambda (grob) (let* ((stencil (ly:accidental-interface::print grob)) (new-stil (grob-interpret-markup grob (markup #:hspace 1 #:musicglyph "accidentals.flat" #:hspace -2 #:transparent #:stencil stencil)))) new-stil))) #(define enhs-acc (lambda (grob) (let* ((stencil (ly:accidental-interface::print grob)) (new-stil (grob-interpret-markup grob (markup #:hspace 1 #:musicglyph "accidentals.sharp" #:hspace -2 #:transparent #:stencil stencil)))) new-stil))) { <dis'~ e'~ f'~ ges'>1 \set Staff.middleCPosition = #-5 <bis c' \tweak Accidental. stencil #enhf-acc dis'! e'!> } -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user