]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/aligning-marks-with-various-notation-objects.ly
Docs: update snippets locally
[lilypond.git] / Documentation / snippets / aligning-marks-with-various-notation-objects.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 = "text"
8
9 %% Translation of GIT committish: b2d4318d6c53df8469dfa4da09b27c15a374d0ca
10   texidoces = "
11 Si están especificadas, las marcas de texto se pueden alinear con
12 objetos de notación distintos a las líneas divisorias.  Entre estos
13 objetos se encuentran @code{ambitus}, @code{breathing-sign},
14 @code{clef}, @code{custos}, @code{staff-bar}, @code{left-edge},
15 @code{key-cancellation}, @code{key-signature} y @code{time-signature}.
16
17 En estos casos, las marcas de texto se centran horizontalmente sobre
18 el objeto, aunque esto se puede cambiar, como se muestra en la segunda
19 línea de este ejemplo (en una partitura con varios pentagramas, se
20 debe hacer este ajuste para todos los pentagramas).
21
22 "
23   doctitlees = "Alinear marcas con varios objetos de notación"
24
25 %% Translation of GIT committish: d96023d8792c8af202c7cb8508010c0d3648899d
26   texidocde = "
27 Wenn angegeben, können Textzeichen auch an anderen Objekten als Taktstrichen
28 ausgerichtet werden.  Zu diesen Objekten gehören @code{ambitus},
29 @code{breathing-sign}, @code{clef}, @code{custos}, @code{staff-bar},
30 @code{left-edge}, @code{key-cancellation}, @code{key-signature} und
31 @code{time-signature}.
32
33 In diesem Fall werden die Zeichen horizontal über dem Objekt zentriert.
34 Diese Ausrichtung kann auch geändert werden, wie die zweite Zeile
35 des Beispiels zeigt.  In einer Partitur mit vielen Systemen sollte
36 diese Einstellung für alle Systeme gemacht werden.
37
38 "
39
40   doctitlede = "Zeichen an verschiedenen Notationsobjekten ausrichten"
41
42   texidoc = "
43 If specified, text marks may be aligned with notation objects other
44 than bar lines.  These objects include @code{ambitus},
45 @code{breathing-sign}, @code{clef}, @code{custos}, @code{staff-bar},
46 @code{left-edge}, @code{key-cancellation}, @code{key-signature}, and
47 @code{time-signature}.
48
49
50
51 In such cases, text marks will be horizontally centered above the
52 object. However this can be changed, as demonstrated on the second line
53 of this example (in a score with multiple staves, this setting should
54 be done for all the staves).
55
56
57
58 "
59   doctitle = "Aligning marks with various notation objects"
60 } % begin verbatim
61
62 \relative c' {
63   e1
64
65   % the RehearsalMark will be centered above the Clef
66   \override Score.RehearsalMark #'break-align-symbols = #'(clef)
67   \key a \major
68   \clef treble
69   \mark "↓"
70   e1
71
72   % the RehearsalMark will be centered above the TimeSignature
73   \override Score.RehearsalMark #'break-align-symbols = #'(time-signature)
74   \key a \major
75   \clef treble
76   \time 3/4
77   \mark \markup { \char ##x2193 }
78   e2.
79
80   % the RehearsalMark will be centered above the KeySignature
81   \override Score.RehearsalMark #'break-align-symbols = #'(key-signature)
82   \key a \major
83   \clef treble
84   \time 4/4
85   \mark \markup { \char ##x2193 }
86   e1
87
88   \break
89   e1
90
91   % the RehearsalMark will be aligned with the left edge of the KeySignature
92   \once \override Score.KeySignature #'break-align-anchor-alignment = #LEFT
93   \mark \markup { \char ##x2193 }
94   \key a \major
95   e1
96
97   % the RehearsalMark will be aligned with the right edge of the KeySignature
98   \once \override Score.KeySignature #'break-align-anchor-alignment = #RIGHT
99   \key a \major
100   \mark \markup { \char ##x2193 }
101   e1
102
103   % the RehearsalMark will be aligned with the left edge of the KeySignature
104   % and then shifted right by one unit.
105   \once \override Score.KeySignature #'break-align-anchor = #1
106   \key a \major
107   \mark \markup { \char ##x2193 }
108   e1
109 }