Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
LilyPond wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Numbering groups of measures
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This snippet demonstrates the use of the <code>Measure_counter_engraver</code> to number groups of successive measures. Any stretch of measures may be numbered, whether consisting of repetitions or not. 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 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. <lilypond version="2.24.0" full> \layout { \context { \Staff \consists #Measure_counter_engraver } } \new Staff { \startMeasureCount \repeat unfold 7 { c'4 d' e' f' } \stopMeasureCount \bar "||" g'4 f' e' d' \override Staff.MeasureCounter.count-from = #2 \startMeasureCount \repeat unfold 5 { g'4 f' e' d' } g'4 f' \bar "" \break e'4 d' \repeat unfold 7 { g'4 f' e' d' } \stopMeasureCount } \paper { tagline = ##f } </lilypond> [[Category:Included in the official documentation]] [[Category:Contexts and engravers]] [[Category:Editorial annotations]] [[Category:Repeats]] [[Category:Staff notation]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Numbering groups of measures
Add topic