On 2024-04-12 12:05, Werner LEMBERG wrote:
Might I suggest that “to-barline” is potentially
misleading/confusing…?
On the other hand:
end-at-barline, for a pedal coded for release on a note **just
after** a barline, might be more clearly descriptive of the
current behaviour; and
extend-to-barline, for a pedal coded for release on a note
**just before** a barline, might be more suggestive of the
behaviour Maurits was expecting.
Is there any technical reason both of these different-but-related
properties can’t/shouldn’t be made available?
I suggest you file an issue.
Exactly the same feature might also be useful for hairpins and other
spanner types, for example when you want to typeset a diminuendo on the
last note of a piece, where the diminuendo ends at the final bar line.
Admittedly, the same result can be obtained by attaching the \! to an
empty chord after the final bar line, but it's still a bit weird syntax:
\version "2.24.3"
\fixed c' {
%%%% .... long piece, ending with
c1 \> | <> \!
\fine
}
Of course, in this specific example, I guess that the following is the
cleanest solution:
\fixed c' {
%%%% .... long piece, ending with
\endSpanners c1 \> |
\fine
}
The same idea of attaching something to an empty chord just after the
bar line is also applicable for the pedal bracket scenario discussed
earlier in this thread:
\score {
\new Staff {
\clef bass
\time 6/8
\relative c' {
c8 b a g e c |
\set Staff.pedalSustainStyle = #'mixed
\override Staff.PianoPedalBracket.to-barline = ##t
\repeat tremolo 12 { b,32\sustainOn b' } |
\repeat tremolo 12 { b,32 b' } | <>\sustainOff
c8 e f g a
}
}
}
However, I couldn't find a way to extend the use of \endSpanner to
provide the equivalent result. I would have expected to the following to
work, but it doesn't:
\score {
\new Staff {
\clef bass
\time 6/8
\relative c' {
c8 b a g e c |
\set Staff.pedalSustainStyle = #'mixed
\override Staff.PianoPedalBracket.to-barline = ##t
\endSpanners{
\repeat tremolo 12 { b,32\sustainOn b' } |
\repeat tremolo 12 { b,32 b' } } |
c8 d e f g a
}
}
}
/Mats