[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \stopStaff shows/doesn't show ledger lines?
From: |
Richard Shann |
Subject: |
Re: \stopStaff shows/doesn't show ledger lines? |
Date: |
Wed, 01 Feb 2023 16:08:48 +0000 |
User-agent: |
Evolution 3.38.3-1 |
Thank you for the quick response Valentin
On Wed, 2023-02-01 at 13:52 +0100, Valentin Petzel wrote:
> 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.
I guess that's a bug in \stopStaff then, I've done some digging and it
seems I can add
\override NoteHead.no-ledgers = ##t
to it as a workaround.
Richard
>
> 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
>