\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))) global = { %%%%%%%%%%%%%%%%%% \key f \minor \numericTimeSignature \time 3/4 \tempo 4=100 \set countPercentRepeats = ##t } scoreACello = \relative c { \global \key f \minor \repeat percent 4 { f8^>_\f f16^. f16^. f8^> f16^. f16^. f8^> f8^> %1 } %{ \makePercent s2. %2 \makePercent s2. %3 \makePercent s2. %4 %} f8^> f16^. f16^. f8^> f16^. f16^. f8^> f8^> %5 \makePercent s2. %6 \makePercent s2._\< %7 \makePercent s2.\! %8 } \score { \new Staff << \new Voice { \scoreACello } >> }