Le 21/03/2021 à 22:14, Roeland Visscher a écrit :
The appended .ly file, using a acciaccatura as first element of an
alternative, generates the warning message (in French)
“Avertissement : extension de reprise déjà présente, fin prématurée de
celle-ci”
and a weird representation of the alternatives in the generated score.
Behaviour is normal if there is only one staff, or if both staffs have
an acciaccatura at start of the alternative.
Anything wrong with my script?
Software bug?
Workaround?
Thanks for your help…
Roeland
Hello,
For your information, we also have a helpful and active French-speaking
user group, lilypond-user-fr; see lilypond.org/contact.fr.html ("Liste
de diffusion francophone" at the bottom).
This is a very famous bug that is documented:
http://lilypond.org/doc/v2.22/Documentation/notation/special-rhythmic-concerns#grace-notes
That page has an example resembling the one you posted. The workaround
is to use a spacer rest as grace in the other voice. On your file, this
results in:
\version "2.23.1"
\header {
title = "Acciaccature"
}
<<
\new Staff {
\relative c' {
\clef treble
\key es \major
\time 11/8
\repeat volta 2 {
c8([ d)] es4 es8( f4) es8([ d] es4)
}
\alternative {
{
\acciaccatura g8
as4 as4 g( f8) \acciaccatura as8 bes2
}
{
\acciaccatura g8
as4 as g( f8) \acciaccatura as8 bes2
}
}
}
}
\new Staff {
\relative c' {
\clef treble
\key es \major
\time 11/8
\repeat volta 2 {
c4 c c4. c2
}
\alternative {
{
c4 es d4. d2
}
{
\grace s8
c4 es d4. es2
}
}
}
}
>>
Best regards,
Jean