]> git.donarmstrong.com Git - lilypond.git/blob - input/new/creating-simultaneous-rehearsal-marks.ly
Merge master into nested-bookparts
[lilypond.git] / input / new / creating-simultaneous-rehearsal-marks.ly
1 \version "2.11.61"
2 \header {
3   lsrtags = "expressive-marks,text,tweaks-and-overrides"
4   texidoc = "
5 Unlike text scripts, rehearsal marks cannot be stacked at a particular point
6 in a score: only one @code{RehearsalMark} object is created.  Using an
7 invisible measure and bar line, an extra rehearsal mark can be added, giving
8 the appearance of two marks in the same column.
9
10 This method may also prove useful for placing rehearsal marks at both the
11 end of one system and the start of the following system.
12 "
13   doctitle = "Creating simultaneous rehearsal marks"
14 }
15
16 % LSR: Thanks to Risto Vääräniemi for this snippet
17
18 {
19   \key a \major
20   \set Score.markFormatter = #format-mark-box-letters
21   \once \override Score.RehearsalMark #'outside-staff-priority = #5000
22   \once \override Score.RehearsalMark #'self-alignment-X = #LEFT
23   \once \override Score.RehearsalMark #'break-align-symbols = #'(key-signature)
24   \mark \markup { \bold { Senza denti } }
25   
26   % the hidden measure and bar line
27   \once \override Score.TimeSignature #'stencil = ##f
28   \time 1/16
29   s16 \bar ""
30   
31   \time 4/4
32   \once \override Score.RehearsalMark #'self-alignment-X = #LEFT
33   \once \override Score.RehearsalMark #'break-align-symbols = #'(bar-line)
34   \mark \markup { \box \bold Intro }
35   d'1
36   \mark \default
37   d'1
38 }