bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: slashedGrace Layout-Fail in PianoStaff


From: Graham King
Subject: Re: slashedGrace Layout-Fail in PianoStaff
Date: Fri, 5 Nov 2021 12:10:20 +0000

This looks like another instance of the infamous and intractable bug 34:
https://gitlab.com/lilypond/lilypond/-/issues/34

The work-round is to add a corresponding grace spacer note in the other staff:
https://lists.gnu.org/archive/html/bug-lilypond/2012-08/msg00084.html


> On 4 Nov 2021, at 17:15, K. L. <fjn6013@gmail.com> wrote:
> 
> % PianoStaff with first Note \slashedGrace ..
> % Layout-Fail
> % double tempo
> % double time
> % double clef (2.line)
> 
> \version "2.22.0"
> 
> piano_mel_error = \relative c''' {
>   \clef treble
>   \key es \major
>   \time 2/4
>   \tempo 4 = 100
>   \autoBeamOff
> 
>   \slashedGrace cis8 < g d' >4
>   \slashedGrace cis8 < g d' >4 |
>   \acciaccatura cis,8 < g d' >4 \acciaccatura cis8 < g d' >8 g \bar "||"
>   c8[ < g es >8] g[ < g es >8] | g[ c,] c[ c] |
>   \break
> }
> 
> piano_mel = \relative c''' {
>   \clef treble
>   \key es \major
>   \time 2/4
>   \tempo 4 = 100
>   \autoBeamOff
> 
>   r8 \slashedGrace cis16 < g d' >8
>   \slashedGrace cis8 < g d' >4 |
>   \acciaccatura cis,8 < g d' >4 \acciaccatura cis8 < g d' >8 g \bar "||"
>   c8[ < g es >8] g[ < g es >8] | g[ c,] c[ c] |
>   \break
> }
> 
> piano_bas = \relative c {
>   \clef bass
>   \key es \major
>   \time 2/4
>   \tempo 4 = 100
>   \autoBeamOff
> 
>   g8[ aes b c] | d[ es f g] \bar "||" c4 b | bes a |
>   \break
> }
> 
> \score {
>   <<
> 
>     \new PianoStaff = "errpiano"
>     \with {
>       instrumentName = "Piano"
>       midiInstrument = "acoustic grand"
>     }
>     <<
>       \new Staff = "errpmal" {
>         \piano_mel_error
> %        \piano_mel
>       }
>       \new Staff = "errpbas" {
>         \piano_bas
>       }
>     >>
> 
>   >>
> 
>   \layout { }
> }
> 
> 
> 
> _______________________________________________
> bug-lilypond mailing list
> bug-lilypond@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-lilypond




reply via email to

[Prev in Thread] Current Thread [Next in Thread]