]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/volta-text-markup-using-repeatcommands.ly
Merge master into nested-bookparts
[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.11.62"
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 voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }
21
22 \relative c'' {
23   c1
24   \set Score.repeatCommands = #(list (list 'volta voltaAdLib) 'start-repeat)
25   c4 b d e
26   \set Score.repeatCommands = #'((volta #f) (volta "4.") end-repeat)
27   f1
28   \set Score.repeatCommands = #'((volta #f))
29 }