Hi, I wanted to typeset a 4-bar extract of BWV 582 ending on a
note which, in the original score, is tied over the barline but
I'm not including the next bar in my extract.

I'd therefore like Lilypond to print a tie, as if it's going
over to the next bar on the following line, but without there
actually being a next bar.

I suppose one way of doing it would be to include the next bar
after a \break and crop the output, but this is going into an
SVG with
page-breaking = #ly:one-line-auto-height-breaking
set in the \paper block, so it would have to be a same-line crop
which would be very tricky to get right especially if I later
make a correction which changes exactly where the barline is.

Currently I'm using \laissezVibrer on the last note, which works
but doesn't look quite like a tie (in particular the direction
of the curves in the two parts is not consistent with that of
other ties in the extract).

Just wondered if I was missing out on a better way of doing "tie
to nothing at the end of an extract".

(If you want to see what I'm doing in context, the blog-like page
I'm posting is https://ssb22.user.srcf.net/m3gan.html and the
extract is an SVG near the bottom.  I took a public-domain copy
of the Bach from Mutopia, edited it down to two staves, got the
SVG and post-processed it with a script I wrote to work around
a Firefox bug, source at:
https://github.com/ssb22/mwr2ly/blob/master/lilypond-svg-fixer.py
although I think recent versions of Firefox no longer need this.
I could post my whole .ly file, but it's a bit messy right now
due to the way I edited it from the Mutopia starting point.)

Thanks.

Silas

Reply via email to