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