]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/volta-text-markup-using-repeatcommands.ly
256aab25b9e63c604d6a9e34401a512e21f80d3b
[lilypond.git] / Documentation / snippets / volta-text-markup-using-repeatcommands.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10   lsrtags = "text, repeats, symbols-and-glyphs"
11
12 %% Translation of GIT committish: d5307870fe0ad47904daba73792c7e17b813737f
13   texidocfr = "
14 La commande @code{\\repeat volta} permet d'indiquer facilement des
15 reprises.  Il est certains cas où l'adjonction d'un texte sous forme de
16 @code{\\markup} nécessite cependant de recourir à la propriété de
17 contexte @code{repeatCommands}.
18
19 Dans la mesure où l'argument de @code{repeatCommands} est constitué
20 d'une liste, le plus simple est de définir le texte dans une variable
21 qui sera ensuite incorporée dans la liste en respectant la syntaxe Scheme
22 @code{#(list (list 'volta texteIdentificateur))}.  Les commandes de
23 début et de fin de reprise peuvent s'ajouter séparément à la liste des
24 éléments.
25
26 "
27   doctitlefr = "Indication de reprise avec texte grâce à repeatCommands"
28
29   texidoc = "
30 Though volte are best specified using @code{\\repeat volta}, the
31 context property @code{repeatCommands} must be used in cases where the
32 volta text needs more advanced formatting with @code{\\markup}.
33
34
35 Since @code{repeatCommands} takes a list, the simplest method of
36 including markup is to use an identifier for the text and embed it in
37 the command list using the Scheme syntax @code{#(list (list 'volta
38 textIdentifier))}. Start- and end-repeat commands can be added as
39 separate list elements:
40
41 "
42   doctitle = "Volta text markup using repeatCommands"
43 } % begin verbatim
44
45
46 voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }
47
48 \relative c'' {
49   c1
50   \set Score.repeatCommands = #(list (list 'volta voltaAdLib) 'start-repeat)
51   c4 b d e
52   \set Score.repeatCommands = #'((volta #f) (volta "4.") end-repeat)
53   f1
54   \set Score.repeatCommands = #'((volta #f))
55 }