Am Fr., 21. Aug. 2026 um 22:16 Uhr schrieb Lovro Barišić <[email protected]>: > > Hi everyone, > > is there a way to alter default ledger line shape in such a way that they > have angular - 90 degree angle ends rather than their current rounded shape > (v.2.26.) > > The ledger line shape stays unaffected no matter the music font used, and I > can't seem to find any possible workaround. > > Many thanks, > Lovro
As others already said, the roundness (i.e. the blot-diameter) is hard-coded.
Though, you could look into the default-stencil and return a modified
one instead.
Beware this depends on the current representation of the stencil,
which may be changed in future versions.
NB Not tested beyond the given example!
\version "2.26.0"
#(define zero-blot-ledger-stencil
(lambda (grob)
(let* ((stil (ly:ledger-line-spanner::print grob))
(stencil-expr (ly:stencil-expr stil)))
(ly:make-stencil
(list-map
(lambda (l)
(if (and (pair? l) (eq? (car l) 'round-filled-box))
(append (drop-right l 1) '(0))
l))
stencil-expr)
(ly:stencil-extent stil X)
(ly:stencil-extent stil Y)))))
\layout {
\context {
\Staff
\override LedgerLineSpanner.stencil = #zero-blot-ledger-stencil
%% For testing purpose:
\override LedgerLineSpanner.color = #red
\override StaffSymbol.line-count = 1
\override StaffSymbol.thickness = 5
}
}
{ b''4 }
Cheers,
Harm
atest-122.cropped.pdf
Description: Adobe PDF document
