\version "2.18.2" makePercent = #(define-music-function (parser location note) (ly:music?) "Make a percent repeat the same length as NOTE." (make-music 'PercentEvent 'length (ly:music-length note))) scoreACello = \relative c { \global \key f \minor \repeat percent4 { f8^>_\f f16^. f16^. f8^> f16^. f16^. f8^> f8^> %1 } %{ \makePercent s2. %2 \makePercent s2. %3 \makePercent s2. %4 %} \repeat percent 2 { f8^> f16^. f16^. f8^> f16^. f16^. f8^> f8^> %5 } %%%%%%%%%% \makePercent s2. %6