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