]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/aligning-objects-created-with-the--mark-command.ly
ffa5cc0a75aeb91d5009f2468445772da77afdc9
[lilypond.git] / Documentation / snippets / aligning-objects-created-with-the--mark-command.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.12.2"
8
9 \header {
10   lsrtags = "text"
11
12   texidoc = "
13 By default the @code{\\mark} command centers objects over a bar line.
14 This behavior can be modified to align at right or left.
15
16 "
17   doctitle = "Aligning objects created with the \\mark command"
18 } % begin verbatim
19
20 \relative c' {
21   c1 \mark "(Center)"
22   c1
23   \once \override Score.RehearsalMark #'self-alignment-X = #LEFT
24   \mark "(Left)"
25   c4 c c c
26   c4 c c c
27   \once \override Score.RehearsalMark #'self-alignment-X = #RIGHT
28   \mark "(Right)"
29   c1
30 }
31
32