4 lsrtags = "contexts-and-engravers, editorial-annotations, repeats, staff-notation"
7 This snippet demonstrates the use of the @code{Measure_counter_engraver} to
8 number groups of successive measures. Any stretch of measures may be numbered,
9 whether consisting of repetitions or not.
11 The engraver must be added to the appropriate context. Here, a @code{Staff}
12 context is used; another possibility is a @code{Dynamics} context.
14 The counter is begun with @code{\\startMeasureCount} and ended with
15 @code{\\stopMeasureCount}. Numbering will start by default with @code{1}, but
16 this behavior may be modified by overriding the @code{count-from} property.
18 When a measure extends across a line break, the number will appear twice, the
19 second time in parentheses.
22 doctitle = "Numbering groups of measures"
28 \consists #Measure_counter_engraver
40 \override Staff.MeasureCounter.count-from = #2