Measure counters: Difference between revisions
m Lemzwerg moved page Numbering groups of measures to Measure counters without leaving a redirect |
mNo edit summary |
||
| Line 3: | Line 3: | ||
The engraver must be added to the appropriate context. Here, a <code>Staff</code> context is used; another possibility is a <code>Dynamics</code> context. | The engraver must be added to the appropriate context. Here, a <code>Staff</code> context is used; another possibility is a <code>Dynamics</code> context. | ||
The counter is begun with <code>\startMeasureCount</code> and ended with <code>\stopMeasureCount</code>. Numbering will start by default | The counter is begun with <code>\startMeasureCount</code> and ended with <code>\stopMeasureCount</code>. Numbering will start by default with 1, but this behavior may be modified by overriding the <code>count-from</code> property. | ||
When a measure extends across a line break, the number will appear twice, the second time in parentheses. | When a measure extends across a line break, the number will appear twice, the second time in parentheses. | ||
<lilypond version="2.24" | <lilypond version="2.24"> | ||
\layout { | \layout { | ||
\context { | \context { | ||
| Line 37: | Line 37: | ||
\stopMeasureCount | \stopMeasureCount | ||
} | } | ||
</lilypond> | </lilypond> | ||
[[Category:Contexts and engravers]] | [[Category:Contexts and engravers]] | ||
[[Category:Editorial annotations]] | [[Category:Editorial annotations]] | ||
[[Category:Repeats]] | [[Category:Repeats]] | ||
[[Category:Staff notation]] | [[Category:Staff notation]] | ||
[[Category:Included in the official documentation]] | |||
[[Category:Snippet]] | [[Category:Snippet]] | ||