]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/how-to-print-two-rehearsal-marks-above-and-below-the-same-barline-method-1.ly
540cfc0ce519544b5af73bd9622ba6b706df0e52
[lilypond.git] / Documentation / snippets / how-to-print-two-rehearsal-marks-above-and-below-the-same-barline-method-1.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 = "expressive-marks, tweaks-and-overrides, staff-notation, editorial-annotations"
11
12 %% Translation of GIT committish: 57f9346bb030f49336a858fcbf1519366fe56454
13   texidocfr = "
14 Cette méthode permet d'imprimer deux marques-repères l'un au dessus de
15 l'autre.  Le repère inférieur est décalé sous la portée, puis s'insère
16 au-dessus de lui un espace pour positionner le repère supérieur
17 au-dessus de la portée.
18
19 L'ajustement des valeurs de @code{extra-offset} et @code{baseline-skip}
20 permet d'accroître ou réduire globalement l'espace entre le repère et la
21 portée.
22
23 La capacité de pratiquement tout type de glyphe ou chaîne de caractère à
24 faire l'objet d'un repère les rend capable de venir se centrer au-dessus
25 ou en dessous d'une barre de mesure.
26
27 L'adjonction de la propriété @code{break-visibility}, comme dans le
28 troisième cas, permet de placer un double repère en fin de ligne.
29
30 Cette première méthode, bien que moins compliquée que la seconde, ne
31 permet pas d'ajuster le positionnement d'un repère indépendamment de
32 l'autre.  Elle peut aussi générer quelques problèmes quant à
33 l'espacement vertical, puisque le recours à @code{extra-offset} ne
34 modifie en rien la valeur originelle de la boîte englobant le repère.
35
36 "
37   doctitlefr = "Impression d'un double repère sur une même barre (méthode 1)"
38
39   texidoc = "
40 This method prints two 'rehearsal marks', one on top of the other. It
41 shifts the lower rehearsal mark below the staff and then adds padding
42 above it in order to place the upper rehearsal mark above the staff.
43
44 By adjusting the extra-offset and baseline-skip values you can increase
45 or decrease the overall space between the rehearsal mark and the staff.
46
47 Because nearly every type of glyph or string can be made to behave like
48 a rehearsal mark it is possible to centre those above and below a bar
49 line.
50
51 Adding the appropriate 'break visibility' as shown in snippet 1 will
52 allow you to position two marks at the end of a line as well.
53
54 Note: Method 1 is less complex than Method 2 but does not really allow
55 for fine tuning of placement of one of the rehearsal marks without
56 affecting the other.  It may also give some problems with vertical
57 spacing, since using @code{extra-offset} does not change the bounding
58 box of the mark from its original value.
59
60
61
62 "
63   doctitle = "How to print two rehearsal marks above and below the same barline (method 1)"
64 } % begin verbatim
65
66
67 \relative c'{
68     c d e f |
69     \once \override Score.RehearsalMark #'extra-offset = #'(0 . -8.5)
70     \once \override Score.RehearsalMark #'baseline-skip = #9
71     \mark \markup \center-column { \circle 1 \box A }
72     g f e d |
73     \once \override Score.RehearsalMark #'extra-offset = #'(0 . -8.5)
74     \once \override Score.RehearsalMark #'baseline-skip = #9
75     \mark \markup \center-column { \flat { \bold \small \italic Fine. } }
76     g f e d |
77     \once \override Score.RehearsalMark #'extra-offset = #'(0 . -8.5)
78     \once \override Score.RehearsalMark #'baseline-skip = #9
79     \override Score.RehearsalMark #'break-visibility = #begin-of-line-invisible
80     \mark \markup \center-column { \musicglyph #"scripts.ufermata" \box z }
81 }