--- /dev/null
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.17.7
+\version "2.17.7"
+
+\header {
+ lsrtags = "contexts-and-engravers, repeats, staff-notation"
+
+ texidoc = "
+Scores of large ensemble works often have bar numbers placed beneath the
+system, centered horizontally on the measure's extent. This snippet shows
+how the @code{Measure_counter_engraver} may be used to simulate this
+notational practice. Here, the engraver has been added to a @code{Dynamics}
+context.
+
+"
+
+ doctitle = "Centered measure numbers"
+} % begin verbatim
+
+
+\layout {
+ \context {
+ \Dynamics
+ \consists #Measure_counter_engraver
+ \override MeasureCounter.direction = #DOWN
+ \override MeasureCounter.font-encoding = #'latin1
+ \override MeasureCounter.font-shape = #'italic
+ % to control the distance of the Dynamics context from the staff:
+ \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #2
+ }
+ \context {
+ \Score
+ \remove "Bar_number_engraver"
+ }
+}
+
+pattern = \repeat unfold 7 { c'4 d' e' f' }
+
+\new StaffGroup <<
+ \new Staff {
+ \pattern
+ }
+ \new Staff {
+ \pattern
+ }
+ \new Dynamics {
+ \startMeasureCount
+ s1*7
+ \stopMeasureCount
+ }
+>>
adding-a-figured-bass-above-or-below-the-notes.ly
adding-an-extra-staff-at-a-line-break.ly
adding-an-extra-staff.ly
+centered-measure-numbers.ly
centering-markup-on-note-heads-automatically.ly
changing-midi-output-to-one-channel-per-voice.ly
changing-time-signatures-inside-a-polymetric-section-using--scaledurations.ly
engravers-one-by-one.ly
mensurstriche-layout-bar-lines-between-the-staves.ly
nesting-staves.ly
+numbering-groups-of-measures.ly
removing-bar-numbers-from-a-score.ly
use-square-bracket-at-the-start-of-a-staff-group.ly
vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly
making-some-staff-lines-thicker-than-the-others.ly
marking-notes-of-spoken-parts-with-a-cross-on-the-stem.ly
measure-counter.ly
+numbering-groups-of-measures.ly
positioning-fingering-indications-precisely.ly
positioning-text-markups-inside-slurs.ly
printing-text-from-right-to-left.ly
--- /dev/null
+\version "2.17.7"
+
+\header {
+ lsrtags = "contexts-and-engravers, repeats, staff-notation"
+
+ texidoc = "
+Scores of large ensemble works often have bar numbers placed beneath the
+system, centered horizontally on the measure's extent. This snippet shows
+how the @code{Measure_counter_engraver} may be used to simulate this
+notational practice. Here, the engraver has been added to a @code{Dynamics}
+context.
+
+"
+
+ doctitle = "Centered measure numbers"
+}
+
+\layout {
+ \context {
+ \Dynamics
+ \consists #Measure_counter_engraver
+ \override MeasureCounter.direction = #DOWN
+ \override MeasureCounter.font-encoding = #'latin1
+ \override MeasureCounter.font-shape = #'italic
+ % to control the distance of the Dynamics context from the staff:
+ \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #2
+ }
+ \context {
+ \Score
+ \remove "Bar_number_engraver"
+ }
+}
+
+pattern = \repeat unfold 7 { c'4 d' e' f' }
+
+\new StaffGroup <<
+ \new Staff {
+ \pattern
+ }
+ \new Staff {
+ \pattern
+ }
+ \new Dynamics {
+ \startMeasureCount
+ s1*7
+ \stopMeasureCount
+ }
+>>
--- /dev/null
+\version "2.17.7"
+
+\header {
+ lsrtags = "contexts-and-engravers, editorial-annotations, repeats, staff-notation"
+
+ texidoc = "
+This snippet demonstrates the use of the @code{Measure_counter_engraver} 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}
+context is used; another possibility is a @code{Dynamics} context.
+
+The counter is begun with @code{\\startMeasureCount} and ended with
+@code{\\stopMeasureCount}. Numbering will start by default with @code{1}, but
+this behavior may be modified by overriding the @code{count-from} property.
+
+When a measure extends across a line break, the number will appear twice, the
+second time in parentheses.
+
+"
+ doctitle = "Numbering groups of measures"
+}
+
+\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
+}
--- /dev/null
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.17.7
+\version "2.17.7"
+
+\header {
+ lsrtags = "contexts-and-engravers, editorial-annotations, repeats, staff-notation"
+
+ texidoc = "
+This snippet demonstrates the use of the @code{Measure_counter_engraver} 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}
+context is used; another possibility is a @code{Dynamics} context.
+
+The counter is begun with @code{\\startMeasureCount} and ended with
+@code{\\stopMeasureCount}. Numbering will start by default with @code{1}, but
+this behavior may be modified by overriding the @code{count-from} property.
+
+When a measure extends across a line break, the number will appear twice, the
+second time in parentheses.
+
+"
+ doctitle = "Numbering groups of measures"
+} % begin verbatim
+
+
+\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
+}
adding-volta-brackets-to-additional-staves.ly
+centered-measure-numbers.ly
cross-staff-tremolos.ly
engraving-tremolos-with-floating-beams.ly
isolated-percent-repeats.ly
measure-counter.ly
+numbering-groups-of-measures.ly
percent-repeat-count-visibility.ly
percent-repeat-counter.ly
positioning-segno-and-coda-with-line-break.ly
adding-orchestral-cues-to-a-vocal-score.ly
adding-timing-marks-to-long-glissandi.ly
alternative-bar-numbering.ly
+centered-measure-numbers.ly
changing-the-number-of-lines-in-a-staff.ly
changing-the-staff-size.ly
creating-blank-staves.ly
mensurstriche-layout-bar-lines-between-the-staves.ly
nesting-staves.ly
non-traditional-key-signatures.ly
+numbering-groups-of-measures.ly
orchestra,-choir-and-piano-template.ly
putting-lyrics-inside-the-staff.ly
quoting-another-voice-with-transposition.ly