]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/how-to-print-two-rehearsal-marks-above-and-below-the-same-barline-method-1.ly
Merge branch 'master' into lilypond/translation
[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; 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 on top of the other. It
11 shifts the lower rehearsal mark below the staff and then adds padding
12 above it in order to place the upper rehearsal mark above the staff.
13
14 By adjusting the extra-offset and baseline-skip values you can increase
15 or decrease the overall space between the rehearsal mark and the staff.
16
17 Because nearly every type of glyph or string can be made to behave like
18 a rehearsal mark it is possible to centre those above and below a bar
19 line.
20
21 Adding the appropriate 'break visibility' as shown in snippet 1 will
22 allow you to position two marks at the end of a line as well.
23
24 Note: Method 1 is less complex than Method 2 but does not really allow
25 for fine tuning of placement of one of the rehearsal marks without
26 affecting the other.  It may also give some problems with vertical
27 spacing, since using @code{extra-offset} does not change the bounding
28 box of the mark from its original value.
29
30
31
32 "
33   doctitle = "How to print two rehearsal marks above and below the same barline (method 1)"
34 } % begin verbatim
35
36 \relative c'{
37     c d e f |
38     \once \override Score.RehearsalMark #'extra-offset = #'(0 . -8.5)
39     \once \override Score.RehearsalMark #'baseline-skip = #9
40     \mark \markup \center-column { \circle 1 \box A }
41     g f e d |
42     \once \override Score.RehearsalMark #'extra-offset = #'(0 . -8.5)
43     \once \override Score.RehearsalMark #'baseline-skip = #9
44     \mark \markup \center-column { \flat { \bold \small \italic Fine. } }
45     g f e d |
46     \once \override Score.RehearsalMark #'extra-offset = #'(0 . -8.5)
47     \once \override Score.RehearsalMark #'baseline-skip = #9
48     \override Score.RehearsalMark #'break-visibility = #begin-of-line-invisible
49     \mark \markup \center-column { \musicglyph #"scripts.ufermata" \box z }
50 }