Repeat with brackets

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 \repeatBracket N music, where N is the number of repetitions. Example: \repeatBracket 7 { c'2 e' }