Wrap repeats in \relative clause to better avoid runaway notes. Repeat
via lilypond \repeat instead of input duplication.