[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \stopStaff shows/doesn't show ledger lines?
From: |
Valentin Petzel |
Subject: |
Re: \stopStaff shows/doesn't show ledger lines? |
Date: |
Wed, 01 Feb 2023 13:52:44 +0100 |
Hello Richard,
the problem here is that the LedgerLineSpanner tries to reference it’s staff
symbol, which is set when the Spanner is created. So the LedgerLineSpanner
does not know the StaffSymbol ended.
The LedgerLineSpanner will be broken on encountering a new StaffSymbol. To
solve this issue one could change the engraver to listen to stop staff events
and in this case also break the LedgerLineSpanner.
Cheers,
Valentin
Am Mittwoch, 1. Februar 2023, 13:17:45 CET schrieb Richard Shann:
> On Wed, 2023-02-01 at 10:35 +0000, Richard Shann wrote:
> > In this piece
>
> I've discovered this can be made still more minimal:
>
> \version "2.24"
> music = {
> e'''1 \stopStaff e'''1 \break e'''1 }
> \score { \music }
>
> The \break is needed.
>
> Richard
>
> > the note on the first system has ledger lines typeset
> >
> > while those on the second does not.
> >
> > \version "2.24"
> > music = {
> > s1*4/4 \stopStaff e'''1
> > s1*4/4 \break e'''1 s1*4/4 }
> > \score { \music }
> >
> > The entry in the documentation for \stopStaff leads to a page that
> > doesn't seem to say much about it...
> >
> > Richard
signature.asc
Description: This is a digitally signed message part.