I'm trying to digitalize a score with LilyPond. I'm struggling with repetitions and acciaccaturas. I've simplified what I'm trying to achieve
In this code
\version "2.24.1"
upper = \relative g'' {
\time 3/4
r2 c,4
\repeat volta 2 { \acciaccatura e8 f2. }
}
lower = \relative f {
\clef bass
\time 3/4
r2 c4
\repeat volta 2 { d8[a'] c,4 c }
}
\score {
\new PianoStaff
<<
\new Staff = "upper" \upper
\new Staff = "lower" \lower
>>
\layout { }
}
But this renders incorrectly
What am I doing wrong?