Repeat with brackets: Difference between revisions

m New category
Tags: Mobile edit Mobile web edit
m No need for full page
Line 1: Line 1:
This snippet adds brackets with the number of repetitions above a bar or a group of bar. Very useful when dealing with minimal music, for instance. To summon it, simply use <code>\repeatBracket </code><code>N</code><code> </code><code>music</code>, where <code>N</code> is the number of repetitions. Example: <code>\repeatBracket 7 { c'2 e' }</code>
This snippet adds brackets with the number of repetitions above a bar or a group of bar. Very useful when dealing with minimal music, for instance. To summon it, simply use <code>\repeatBracket </code><code>N</code><code> </code><code>music</code>, where <code>N</code> is the number of repetitions. Example: <code>\repeatBracket 7 { c'2 e' }</code>


<lilypond version="2.24" full>
<lilypond version="2.24">
% repeatBracket snippet
% repeatBracket snippet
% will add .----Nx----. above a bar, where N is the number of repetitions
% will add .----Nx----. above a bar, where N is the number of repetitions
Line 162: Line 162:
   \repeatBracket 1048 {g'1}   
   \repeatBracket 1048 {g'1}   
}
}
\paper { tagline = ##f }
</lilypond>
</lilypond>