Le 27/10/2021 à 09:23, Lukas-Fabian Moser a écrit :
but I admit that your solution gives better spacing. (The
extra-spacing-width of both Staff.Clef and Staff.BarLine doesn't seem
to be able to increase the space between clef and barline.)
Even though this behavior may not be clearly
documented, it is intended. extra-spacing-width
and extra-spacing-height only affect the spacing
between adjacent columns. The distances inside
one columns are computed by different means, and
they are fixed (they don't depend on line breaking).
Take:
\version "2.22.1"
\layout {
\context {
\Voice
\override NoteHead.extra-spacing-width = #'(-2 . 2)
}
}
{ c' d' ees' }
The intent of the \override is to bring
notes farther to each other. You wouldn't
want the accidental to be moved more to the
left of its note. So here, rather try:
\version "2.23.5"
{
\clef tenor
\repeat volta 2 {
c'4 e' c' d'
\clef bass
a4 b g c'
}
\alternative {
{
b8 a g f g4 b
\parenthesize Staff.Clef
\once\override Staff.Parentheses.font-size = 3
\once\override Staff.Clef.font-size = -2
\once\override Staff.Parentheses.padding = 0
\once\override Staff.Clef.space-alist.staff-bar = #'(extra-space
. 1)
\set Staff.clefGlyph = "clefs.C"
}
{ b1 }
}
c'1
}
(It isn't great that \parenthesize doesn't reserve
spacing, but it's not entirely trivial to find a
general way and so far my work on this is waiting
for purity enhancements that will, if I manage to
complete them, bring the necessary functionality
to the axis-group-interface.)
Best,
Jean