I have a piece of lilypond code here:
trebleNotesOne = {
\unfoldRepeats {
\repeat volta 2 {
r8 a'16 b'16 c''8 b'16 c''16 d''2 |
r8 b'16 a'16 b'8 a'16 g'16 f'2 |
}
}
}
bassNotesOne = {
\clef bass
\unfoldRepeats {
\repeat volta 2 {
a8 b8 c8 d8 a8 b8 c8 d8 |
a8 b8 c8 d8 a8 b8 c8 d8 |
}
}
}
\score {
\new GrandStaff
<<
\new Staff << \trebleNotesOne >>
\new Staff << \bassNotesOne >>
>>
\layout {
ragged-right = ##t
}
\midi {}
}
I want both the repetition notation (\repeat volta 2
) printed in the sheet music pdf, and for the midi file generated to contain repeated plays.
The above code prints:
But I want in pdf:
with midi repetition.