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