]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/shortening-volta-brackets.ly
22e52ece02ec3ce30f33f90633445a1d57f2d62a
[lilypond.git] / input / lsr / shortening-volta-brackets.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.57"
4
5 \header {
6   lsrtags = "repeats"
7
8   texidoc = "
9 By default, the volta brackets will be drawn over all of the
10 alternative music, but it is possible to shorten them by setting
11 @code{voltaSpannerDuration}.  In the next example, the bracket only
12 lasts one measure, which is a duration of 3/4. 
13
14 "
15   doctitle = "Shortening volta brackets"
16 } % begin verbatim
17 \relative c'' {
18   \time 3/4
19   c4 c c
20   \set Score.voltaSpannerDuration = #(ly:make-moment 3 4)
21   \repeat volta 5 { d4 d d }
22   \alternative {
23     {
24       e4 e e
25       f4 f f
26     }
27     { g4 g g }
28   }
29 }