On Fri, May 3, 2024 at 3:04 AM Mats Bengtsson <matsboxergr...@gmail.com>
wrote:

>
> If you want the (de-)crescendo to stop at the barline, then you
> shouldn't need such solutions, since \< and \> have the to-barline
> property set by default, which means that even if the \! is placed after
> the bar line, the hairpin will stop nicely just at the end of the bar:
>
> \version "2.24.0"
>
> {
>    <>\< \repeat unfold 8 {e''16 d''} <>\! |
>    c'1 |
>    % Strangely enough, to-barline isn't the default for textual
> de(crescendi):
>    \override DynamicTextSpanner.to-barline = ##t
>    <>\cresc \repeat unfold 8 {e''16 d''} <>\! |
>    c'1 |
> }
>

That works well with dynamics, but it doesn't work well with something like
sustain pedalling.  There is no to-barline property (that I'm aware of) so
a construction like this:

\version "2.24.3"

\relative {
  c''4\sustainOn c c c <>\sustainOff |
  c4\sustainOn c c c <>\sustainOff | \break
  c4\sustainOn c c c <>\sustainOff |
}

... means you will get a combined sustainOff/sustainOn at the first beat of
the second and third measures and an error from the last <>sustainOff in
the code.


--
Knute Snortum

Reply via email to