]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/shortening-volta-brackets.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / shortening-volta-brackets.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.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.16.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
23 \relative c'' {
24   \time 3/4
25   c4 c c
26   \set Score.voltaSpannerDuration = #(ly:make-moment 3 4)
27   \repeat volta 5 { d4 d d }
28   \alternative {
29     {
30       e4 e e
31       f4 f f
32     }
33     { g4 g g }
34   }
35 }