]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/creating-simultaneous-rehearsal-marks.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / creating-simultaneous-rehearsal-marks.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 = "expressive-marks, text, tweaks-and-overrides"
11
12   texidoc = "
13 Unlike text scripts, rehearsal marks cannot be stacked at a particular
14 point in a score: only one @code{RehearsalMark} object is created.
15 Using an invisible measure and bar line, an extra rehearsal mark can be
16 added, giving the appearance of two marks in the same column. This
17 method may also prove useful for placing rehearsal marks at both the
18 end of one system and the start of the following system.
19
20 "
21   doctitle = "Creating simultaneous rehearsal marks"
22 } % begin verbatim
23
24 {
25   \key a \major
26   \set Score.markFormatter = #format-mark-box-letters
27   \once \override Score.RehearsalMark #'outside-staff-priority = #5000
28   \once \override Score.RehearsalMark #'self-alignment-X = #LEFT
29   \once \override Score.RehearsalMark #'break-align-symbols = #'(key-signature)
30   \mark \markup { \bold { Senza denti } }
31
32   % the hidden measure and bar line
33   % \cadenzaOn turns off automatic calculation of bar numbers
34   \cadenzaOn
35   \once \override Score.TimeSignature #'stencil = ##f
36   \time 1/16
37   s16 \bar ""
38   \cadenzaOff
39
40   \time 4/4
41   \once \override Score.RehearsalMark #'self-alignment-X = #LEFT
42   \mark \markup { \box \bold Intro }
43   d'1
44   \mark \default
45   d'1
46 }