]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/aligning-objects-created-with-the--mark-command.ly
Merge branch 'stable/2.16' into staging
[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.16.0"
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
21 \relative c' {
22   c1 \mark "(Center)"
23   c1
24   \once \override Score.RehearsalMark #'self-alignment-X = #LEFT
25   \mark "(Left)"
26   c4 c c c
27   c4 c c c
28   \once \override Score.RehearsalMark #'self-alignment-X = #RIGHT
29   \mark "(Right)"
30   c1
31 }