]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/alternative-bar-numbering.ly
aead8fc5081a848e5062b47905e55fe8ffe16bd0
[lilypond.git] / Documentation / snippets / alternative-bar-numbering.ly
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
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.15.24
8 \version "2.15.24"
9
10 \header {
11   lsrtags = "editorial-annotations, staff-notation, tweaks-and-overrides"
12   texidoc = "Two alternative methods for bar numbering can be set,
13   especially for when using repeated music."
14   doctitle = "Alternative bar numbering"
15 } % begin verbatim
16
17
18 \relative c'{
19   \set Score.alternativeNumberingStyle = #'numbers
20   \repeat volta 3 { c4 d e f | }
21     \alternative {
22       { c4 d e f | c2 d \break }
23       { f4 g a b | f4 g a b | f2 a | \break }
24       { c4 d e f | c2 d }
25     }
26   c1 \break
27   \set Score.alternativeNumberingStyle = #'numbers-with-letters
28   \repeat volta 3 { c,4 d e f | }
29     \alternative {
30       { c4 d e f | c2 d \break }
31       { f4 g a b | f4 g a b | f2 a | \break }
32       { c4 d e f | c2 d }
33     }
34   c1
35 }