1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
6 % This file is in the public domain.
7 %% Note: this file works from version 2.17.7
11 lsrtags = "contexts-and-engravers, editorial-annotations, repeats, staff-notation"
14 This snippet demonstrates the use of the @code{Measure_counter_engraver} to
15 number groups of successive measures. Any stretch of measures may be numbered,
16 whether consisting of repetitions or not.
18 The engraver must be added to the appropriate context. Here, a @code{Staff}
19 context is used; another possibility is a @code{Dynamics} context.
21 The counter is begun with @code{\\startMeasureCount} and ended with
22 @code{\\stopMeasureCount}. Numbering will start by default with @code{1}, but
23 this behavior may be modified by overriding the @code{count-from} property.
25 When a measure extends across a line break, the number will appear twice, the
26 second time in parentheses.
29 doctitle = "Numbering groups of measures"
36 \consists #Measure_counter_engraver
48 \override Staff.MeasureCounter.count-from = #2