]> 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 'web-experimental' into lilypond/translation
[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; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.12.2"
5
6 \header {
7   lsrtags = "expressive-marks, staff-notation, editorial-annotations, tweaks-and-overrides"
8
9   texidoc = "
10 This method prints two 'rehearsal marks' - one above the stave and one
11 below, by creating two voices, adding the Rehearsal Mark engraver to
12 each voice - without this no rehearsal mark is printed - and then
13 placing each rehearsal mark UP and DOWN in each voice respectively.
14
15 This method (as opposed to method 1) is more complex, but allows for
16 more flexibility, should it be needed to tweak each rehearsal mark
17 independently of the other.
18
19 "
20   doctitle = "How to print two rehearsal marks above and below the same barline (method 2)"
21 } % begin verbatim
22
23 \score {
24   \relative c'
25   <<
26     \new Staff {
27       <<
28         \new Voice \with {
29           \consists Mark_engraver
30           \consists "Staff_collecting_engraver"
31         }
32         { c4 d e f
33           \mark \markup { \box A }
34           c4 d e f
35         }
36         \new Voice \with {
37           \consists Mark_engraver
38           \consists "Staff_collecting_engraver"
39           \override RehearsalMark #'direction = #DOWN
40         }
41         { s4 s s s
42           \mark \markup { \circle 1 }
43           s4 s s s
44         }
45       >>
46     }
47   >>
48   \layout {
49     \context {
50       \Score
51       \remove "Mark_engraver"
52       \remove "Staff_collecting_engraver"
53     }
54   }
55 }