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