Kieren, Timothy,
With the help of your code I have answered my original question:
setA = { \temporary \override Score.BarNumber.stencil = #"A" }
Paul
On 12/23/25 4:13 PM, Paul Scott wrote:
Perfect!! Thank you very much!
I am still curious if there is a way to do it the way I originally tried:
setA = { \temporary \override Score.BarNumber.stencil = "A" }
Paul
On 12/23/25 11:14 AM, Kieren MacMillan wrote:
Hi Paul,
What about letters without numbers, which is why I started this thread?
Is this what you’re talking about?
%%% SNIPPET BEGINS
\version "2.25.25"
bnLet =
#(define-music-function
(parser location aLetter)
(string?)
#{
\once \override Score.BarNumber.stencil =
#(lambda (grob)
(let ((text (ly:grob-property grob 'text)))
(grob-interpret-markup grob
#{ \markup $aLetter #})))
#})
{
\override Score.BarNumber.break-visibility = ##(#f #t #t)
c'1
c'1
\bnLet #"A" c'1
\bnLet #"W" c'1
c1
}
%%% SNIPPET ENDS
Still doesn’t automatically “increment” the letter(s)… but at least
the music function lets you override the stencil easily.
Hope that helps!
Kieren.
__________________________________________________
My work day may look different than your work day. Please do not feel
obligated to read or respond to this email outside of your normal
working hours.