Hi,
Use this override:
\version "2.22"
tune = \relative c'' {
\override Hairpin.to-barline = ##f
\clef treble
r2 r4 f8 a\<~ | a1\! |
}
\score {
<<
\new Staff \tune
>>
}
Looking at
https://lilypond.org/doc/v2.23/Documentation/notation/lilypond-index.html#lilypond-index_cp_letter-H
will redirect you to a snippet demonstrating that
("Setting hairpin behavior at bar lines").
Either this, or (in recent development versions):
\version "2.23.4"
tune = \relative c'' {
\clef treble
r2 r4 f8 a\<~ | \after 2.. \! a1 |
}
\score {
<<
\new Staff \tune
>>
}
depending on what is meant exactly by wanting "the hairpin to terminate
at the end of the whole note".
Lukas