blob: 82a609c12ff66ab2af1f3ff5dab4e56d575198fb (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
% DO NOT EDIT this file manually; it is automatically
% generated from Documentation/snippets/new
% Make any changes in Documentation/snippets/new/
% and then run scripts/auxiliar/makelsr.py
%
% This file is in the public domain.
%% Note: this file works from version 2.17.27
\version "2.17.27"
\header {
= "spacing, tweaks-and-overrides, workaround"
= "
All @code{DynamicLineSpanner} objects (hairpins and dynamic texts) are
placed with their reference line at least @code{'staff-padding} from
the staff, unless other notation forces them to be farther.
Setting @code{'staff-padding} to a sufficiently large value aligns the
dynamics.
The same idea, together with @code{\\textLengthOn}, is used to align
the text scripts along their baseline.
"
= "Vertically aligned dynamics and textscripts"
} % begin verbatim
\markup \vspace #1 %avoid LSR-bug
music = \relative c' {
a'2\p b\f
e4\p f\f\> g, b\p
c2^\markup { \huge gorgeous } c^\markup { \huge fantastic }
}
{
\music
\break
\override DynamicLineSpanner.staff-padding = #3
\textLengthOn
\override TextScript.staff-padding = #1
\music
}
|