]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/volta-text-markup-using-repeatcommands.ly
Doc-es: pre-merge update of texidoc committishes.
[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 %% Note: this file works from version 2.12.0
4 \version "2.12.0"
5
6 \header {
7   lsrtags = "repeats"
8   texidoc = "Though volte are best specified using
9 @code{\\repeat volta}, the context property @code{repeatCommands}
10 must be used in cases where the volta text needs more advanced
11 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
15 it in the command list using the Scheme syntax
16 @w{@code{#(list (list 'volta textIdentifier))}}. Start- and
17 end-repeat commands can be added as separate list elements:"
18 doctitle = "Volta text markup using @code{repeatCommands}"
19 } % begin verbatim
20
21
22 voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }
23
24 \relative c'' {
25   c1
26   \set Score.repeatCommands = #(list (list 'volta voltaAdLib) 'start-repeat)
27   c4 b d e
28   \set Score.repeatCommands = #'((volta #f) (volta "4.") end-repeat)
29   f1
30   \set Score.repeatCommands = #'((volta #f))
31 }