Hi Chris,

we use to always keep communication on-list, except in special circumstances. Thus everybody will be able to follow and see whether there has been a solution, or look it up in the archives. So ‘reply all’.


On 01.11.2016 23:02, Christopher Heckman wrote:
On Tue, Nov 1, 2016 at 2:55 PM, Simon Albrecht <simon.albre...@mail.de> wrote:
On 31.10.2016 06:10, Jay Anderson wrote:
On Sun, Oct 30, 2016 at 5:35 PM, Christopher Heckman
<christopher.heck...@asu.edu> wrote:
I stumbled on this hack, and it doesn't appear to be anywhere online.

As is, you can't have a hairpin run until the very end of a score; it
will stop before the last note. You also can't add \! to a \bar;
Lilypond complains that it is not a musical event.

The idea is to use \afterGrace, with an invisible grace note.

\absolute {
      c'2\> \afterGrace d' { s16\! } |
      }

MIDI translates this as you would expect, without an extra note at the
end.

However, this will not work if the hairpin starts on the last printed
note.
I tend to use this:

c1\> s1*0\! |
Or you can use an empty chord:
c1 <>\!

Best, Simon
I haven't tried these yet, but it looks like the hairpin would extend
to the end of the bar; in my fix, it ends about 3/4 of the way there.

In that case, another opportunity to step forward with the now much-used \after function, here to be applied as
\after 3/4 \! c1\>

See attachment.
Best, Simon
\version "2.18.2"

% Thanks to David Kastrup for the inspiration!
after =
#(define-music-function (parser location t e m) (ly:duration? ly:music? ly:music?)
   #{
     \context Bottom <<
       #m
       { \skip $t <> -\tweak extra-spacing-width #empty-interval $e }
     >>
   #})

{ \after 4 \< \after 2 \> \after 2. \! c'1 }
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to