]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/dynamics-custom-text-spanner-postfix.ly
74d36a9c5c156b186c643f55de409b6e6cf8aaa1
[lilypond.git] / Documentation / snippets / dynamics-custom-text-spanner-postfix.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 = "tweaks-and-overrides, expressive-marks"
11
12 %% Translation of GIT committish: 6977ddc9a3b63ea810eaecb864269c7d847ccf98
13
14   texidoces = "
15 Funciones postfijas para la creación de objetos de extensión de texto
16 personalizados.  Los objetos de extensión deben comenzar en la primera
17 nota del compás.  Hay que utilizar -\mycresc, en caso contrario el
18 comienzo del eobjeto de extensión se asignará a la nota siguiente.
19
20 "
21
22   doctitlees = "Objeto personalizado de extensión de texto de matices dinámicos postfijo"
23 %%   Translation of GIT committish: ab9e3136d78bfaf15cc6d77ed1975d252c3fe506
24
25
26   texidocde = "Die Nachstellung funktioniert für eigene Crescendo-Textstrecker.
27 Die Strecker sollten an der ersten Note eines Taktes beginnen.  Man muss
28 -\mycresc benutzen, sonst wird der Beginn des Streckers der nächsten Note
29 zugewiesen.
30
31 "
32   doctitlede = "Eigene Dynamiktextspanner nachgestellt"
33
34
35 %% Translation of GIT committish: 3b125956b08d27ef39cd48bfa3a2f1e1bb2ae8b4
36   texidocfr = "
37 Il s'agit de fonctions postfix pour personnaliser l'extension des
38 crescendos textuels.  L'extension devrait débuter sur la première note
39 de la mesure.  Il faut utiliser @w{@code{-\mycresc}} -- comme une
40 articulation -- sous peine que le départ de l'extension n'apparaisse
41 qu'à la note suivante.
42
43 "
44
45   doctitlefr = "Personnalisation des extenseurs de nuance postfix"
46
47
48   texidoc = "
49 Postfix functions for custom crescendo text spanners.  The spanners
50 should start on the first note of the measure.  One has to use
51 -\\mycresc, otherwise the spanner start will rather be assigned to the
52 next note.
53
54 "
55   doctitle = "Dynamics custom text spanner postfix"
56 } % begin verbatim
57
58 % Two functions for (de)crescendo spanners where you can explicitly give the
59 % spanner text.
60 mycresc =
61 #(define-music-function (parser location mymarkup) (markup?)
62    (make-music 'CrescendoEvent
63                'span-direction START
64                'span-type 'text
65                'span-text mymarkup))
66 mydecresc =
67 #(define-music-function (parser location mymarkup) (markup?)
68    (make-music 'DecrescendoEvent
69                'span-direction START
70                'span-type 'text
71                'span-text mymarkup))
72
73 \relative c' {
74   c4-\mycresc "custom cresc" c4 c4 c4 |
75   c4 c4 c4 c4 |
76   c4-\mydecresc "custom decresc" c4 c4 c4 |
77   c4 c4\! c4 c4
78 }