[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Key Signature Bug in 2.24.0,Re: Key Signature Bug in 2.24.0
From: |
nitram45 |
Subject: |
Re: Key Signature Bug in 2.24.0,Re: Key Signature Bug in 2.24.0 |
Date: |
Fri, 13 Jan 2023 11:58:42 +0000 |
Yes it is better, thank you for your fast reply. But several problems are
still there in my opinion:
- The first note of the measure doesn't align with the last accidental and
is still too far.
- I don't understand why the distance between different accidentals is
wider (for instance between a natural and a sharp, or between a natural
and a flat).
Le vendredi 13 janvier 2023 à 12:02, Jean Abou Samra a écrit :
> Le 13/01/2023 à 10:16, Werner LEMBERG a écrit :
> > > > I just discovered this huge bug in the recent release of 2.24.0
> > > > which wasn't in the previous version.
> > > What previous version did you test this with? For me, the output is
> > > the same in 2.22 and in 2.18.2.
> > Regardless of that, it is indeed a severe bug: No need to ever align
> > key signatures vertically, AFAIK. Simply left-align them.
>
>
> Do you mean like this, or something else?
>
> (NB this is unreliable code, I was surprised that it even works)
>
> \version "2.24.0"
>
> music = \relative c' {
> \override Staff.KeyCancellation.break-align-symbol = #'key-signature
> \override Staff.KeySignature.X-offset =
> #(lambda (grob)
> (let* ((parent (ly:grob-parent grob X))
> (elts (ly:grob-object parent 'elements))
> (can (find (lambda (g)
> (and (grob::has-interface g
> 'key-cancellation-interface)
> (eq? (ly:grob-object g 'staff-symbol)
> (ly:grob-object grob 'staff-symbol))))
> (ly:grob-array->list elts))))
> (when can
> (ly:grob-translate-axis!
> grob
> (+ (- (interval-end (ly:grob-extent can parent X))
> (ly:grob-relative-coordinate grob parent X))
> 0.7)
> X))))
> \key es\major
> c d e f
> \key c\major
> c d e f
> \key as\major
> c d e f
> \key bes\major
> c d e f
> }
>
> \new StaffGroup <<
> \transpose c a {
> \music
> }
> \new Staff
> \transpose c g {
> \music
> }
> \new Staff
> \music
> >>
>
>
- Key Signature Bug in 2.24.0, nitram45, 2023/01/13
- Re: Key Signature Bug in 2.24.0, Jean Abou Samra, 2023/01/13
- Re: Key Signature Bug in 2.24.0,Re: Key Signature Bug in 2.24.0, Werner LEMBERG, 2023/01/13
- Re: Key Signature Bug in 2.24.0,Re: Key Signature Bug in 2.24.0, Jean Abou Samra, 2023/01/13
- Re: Key Signature Bug in 2.24.0,Re: Key Signature Bug in 2.24.0,
nitram45 <=
- Re: Key Signature Bug in 2.24.0,Re: Key Signature Bug in 2.24.0, David Wright, 2023/01/13
- Re: Key Signature Bug in 2.24.0,Re: Key Signature Bug in 2.24.0, nitram45, 2023/01/13
- Re: Key Signature Bug in 2.24.0,Re: Key Signature Bug in 2.24.0, David Wright, 2023/01/13
- Re: Key Signature Bug in 2.24.0,Re: Key Signature Bug in 2.24.0, nitram45, 2023/01/14
- Re: Key Signature Bug in 2.24.0,Re: Key Signature Bug in 2.24.0, Jean Abou Samra, 2023/01/13
Re: Key Signature Bug in 2.24.0, nitram45, 2023/01/13