]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/how-to-print-two-rehearsal-marks-above-and-below-the-same-barline-method-2.ly
Merge branch 'translation' into staging
[lilypond.git] / Documentation / snippets / how-to-print-two-rehearsal-marks-above-and-below-the-same-barline-method-2.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 la portée et l'autre en dessous -- à l'aide de deux voix séparées.  Le
16 graveur de repères est ensuite déplacé dans chacune des voix, sans quoi
17 aucun repère ne sera imprimé.  Enfin, chaque voix se voit attribuer un
18 positionnement pour les repères.
19
20 Cette méthode, bien que plus complexe que la première, apporte plus de
21 flexibilité dans l'ajustement individuel des deux composants du repère.
22
23 "
24   doctitlefr = "Impression d'un double repère sur une même barre (méthode 2)"
25
26   texidoc = "
27 This method prints two 'rehearsal marks' - one above the stave and one
28 below, by creating two voices, adding the Rehearsal Mark engraver to
29 each voice - without this no rehearsal mark is printed - and then
30 placing each rehearsal mark UP and DOWN in each voice respectively.
31
32 This method (as opposed to method 1) is more complex, but allows for
33 more flexibility, should it be needed to tweak each rehearsal mark
34 independently of the other.
35
36 "
37   doctitle = "How to print two rehearsal marks above and below the same barline (method 2)"
38 } % begin verbatim
39
40
41 \score {
42   \relative c'
43   <<
44     \new Staff {
45       <<
46         \new Voice \with {
47           \consists Mark_engraver
48           \consists "Staff_collecting_engraver"
49         }
50         { c4 d e f
51           \mark \markup { \box A }
52           c4 d e f
53         }
54         \new Voice \with {
55           \consists Mark_engraver
56           \consists "Staff_collecting_engraver"
57           \override RehearsalMark #'direction = #DOWN
58         }
59         { s4 s s s
60           \mark \markup { \circle 1 }
61           s4 s s s
62         }
63       >>
64     }
65   >>
66   \layout {
67     \context {
68       \Score
69       \remove "Mark_engraver"
70       \remove "Staff_collecting_engraver"
71     }
72   }
73 }