Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10)

Unified Diff: Documentation/snippets/numbering-groups-of-measures.ly

Issue 7678047: Issue 2924: Doc: \startMeasureCount and \stopMeasureCount needs documenting (Closed) Base URL: http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Documentation/snippets/numbering-groups-of-measures.ly
diff --git a/Documentation/snippets/numbering-groups-of-measures.ly b/Documentation/snippets/numbering-groups-of-measures.ly
new file mode 100644
index 0000000000000000000000000000000000000000..7c082bed1b5ec7dfbdbd4dbfae296e7b5fc28df5
--- /dev/null
+++ b/Documentation/snippets/numbering-groups-of-measures.ly
@@ -0,0 +1,61 @@
+% 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
+}
« no previous file with comments | « Documentation/snippets/new/numbering-groups-of-measures.ly ('k') | Documentation/snippets/repeats.snippet-list » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b