File: repeat-volta.ly

package info (click to toggle)
lilypond 2.24.4-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 70,352 kB
  • sloc: cpp: 87,962; lisp: 43,344; xml: 31,269; python: 22,974; sh: 4,090; yacc: 4,080; perl: 2,873; lex: 1,387; makefile: 76
file content (22 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
\version "2.19.21"

\header{
  texidoc="
Volta (Semi folded) behavior.  Voltas can start on non-bar line moments.
If they don't bar lines should still be shown.
"
}

#(ly:set-option 'warning-as-error #t)
%% One warning for the \repeat and one for the \alternative.
#(ly:expect-warning (G_ "More alternatives than repeats.  Junking excess alternatives"))
#(ly:expect-warning (G_ "More alternatives than repeats.  Junking excess alternatives"))

\context Voice \relative {
  %% repeat non aligning with bar lines.
  \repeat volta 3 { c''^"3x 0alt" d e }
  %% less alts than body
  \repeat volta 4 { c^"4x 2alt" d } \alternative { e f }
  %% more alts than body
  \repeat volta 2 { c^"2x 3alt" d } \alternative { e f g }
}