Dear Silas,

Give this a try and let me know if it accomplishes what you were hoping for.

Thanks,
-William

% ----------
\version "2.25.24"

\score { <<
  \new Staff \relative c'' {
    #(set! afterGraceFraction (/ 7 8))
    c2 \afterGrace c2~ {\once\hideNotes c8} }
  \new Staff \relative c' { c8 c c c c c c c }
>> }
% ----------

On 4/10/25 05:57, Silas S. Brown wrote:
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


--
William Rehwinkel (any pronouns)
Juilliard School '26 - Oberlin Conservatory '24
will...@williamrehwinkel.net - https://williamrehwinkel.net
PGP Public Key: https://ftp.williamrehwinkel.net/pubkey.txt

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to