LSR: Update.
[lilypond/mpolesky.git] / Documentation / snippets / volta-text-markup-using-repeatcommands.ly
blob0f18baff1a4fd81522ae0d207ff66d02b85e6dd5
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.29"
6 \header {
7 lsrtags = "repeats, text"
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}.
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:
21 doctitle = "Volta text markup using repeatCommands"
22 } % begin verbatim
24 voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }
26 \relative c'' {
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)
32 \set Score.repeatCommands = #'((volta #f))