]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/volta-text-markup-using-repeatcommands.ly
Merge commit 'origin' into includes
[lilypond.git] / input / lsr / volta-text-markup-using-repeatcommands.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.12.0"
4
5 \header {
6   lsrtags = "repeats"
7   texidoc = "Though volte are best specified using
8 @code{\\repeat volta}, the context property @code{repeatCommands}
9 must be used in cases where the volta text needs more advanced
10 formatting with @code{\\markup}.
11
12 Since @code{repeatCommands} takes a list, the simplest method of
13 including markup is to use an identifier for the text and embed
14 it in the command list using the Scheme syntax
15 @w{@code{#(list (list 'volta textIdentifier))}}. Start- and
16 end-repeat commands can be added as separate list elements:"
17 doctitle = "Volta text markup using @code{repeatCommands}"
18 } % begin verbatim
19
20
21 voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }
22
23 \relative c'' {
24   c1
25   \set Score.repeatCommands = #(list (list 'volta voltaAdLib) 'start-repeat)
26   c4 b d e
27   \set Score.repeatCommands = #'((volta #f) (volta "4.") end-repeat)
28   f1
29   \set Score.repeatCommands = #'((volta #f))
30 }