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