]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/volta-text-markup-using-repeatcommands.ly
Docs: update LSR
[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.13.4"
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 Since @code{repeatCommands} takes a list, the simplest method of
15 including markup is to use an identifier for the text and embed it in
16 the command list using the Scheme syntax @code{#(list (list 'volta
17 textIdentifier))}. Start- and end-repeat commands can be added as
18 separate list elements: 
19
20 "
21   doctitle = "Volta text markup using repeatCommands"
22 } % begin verbatim
23
24 voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }
25
26 \relative c'' {
27   c1
28   \set Score.repeatCommands = #(list (list 'volta voltaAdLib) 'start-repeat)
29   c4 b d e
30   \set Score.repeatCommands = #'((volta #f) (volta "4.") end-repeat)
31   f1
32   \set Score.repeatCommands = #'((volta #f))
33 }