]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/shortening-volta-brackets.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / shortening-volta-brackets.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "repeats"
11
12   texidoc = "
13 By default, the volta brackets will be drawn over all of the
14 alternative music, but it is possible to shorten them by setting
15 @code{voltaSpannerDuration}.  In the next example, the bracket only
16 lasts one measure, which is a duration of 3/4.
17
18 "
19   doctitle = "Shortening volta brackets"
20 } % begin verbatim
21
22 \relative c'' {
23   \time 3/4
24   c4 c c
25   \set Score.voltaSpannerDuration = #(ly:make-moment 3/4)
26   \repeat volta 5 { d4 d d }
27   \alternative {
28     {
29       e4 e e
30       f4 f f
31     }
32     { g4 g g }
33   }
34 }