]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/ottava.ly
Split WWW target in two stages WWW-1 and WWW-2
[lilypond.git] / input / regression / ottava.ly
1
2 \header
3 {
4   texidoc = "Ottava brackets are supported, through the
5 use of the scheme function @code{set-octavation}.
6
7 The spanner should go below a staff for 8va bassa, and the ottavation
8 markup can be tuned with @code{Staff.ottavation}.
9
10 "
11
12 }
13 \version "2.11.47"
14
15 %% . There must be a minimum distance between the octavation line and the
16 %%   topmost staff line, taking into account the height of the closing
17 %%   vertical dashed line.
18                                 %
19 %% . Octavation lines broken across staves must always start with `8va'
20 %%   (or something similar).
21                                 %
22 %% . The `8va' should be slightly offset to the left.
23                                 %
24 %% . The final vertical dashed line of the octavation line should be offset
25 %%   to the right.
26                                 %
27 %% . Octavation lines for `8va bassa' must be below the staff, not above.
28                                 %
29 %% . The `8va bassa' string is far too long for short octavation lines.
30 %%   LilyPond should select between `8va bassa', `8ba', and `8', depending
31 %%   on the available horizontal space (and the octavation style selected
32 %%   by the user).  The same holds for `8va' and `15ma'.
33
34
35 \layout { ragged-right = ##t} 
36
37 \relative c'''  {
38   a b c a
39   #(set-octavation 1)
40   a b c a
41   #(set-octavation 0)
42   #(set-octavation 2)
43   a b c a
44   #(set-octavation 0)
45   #(set-octavation -1)
46   a b c a
47   #(set-octavation 0)
48   \break
49   a, 
50   #(set-octavation 1)
51   \set Staff.ottavation = #"8"
52   b
53   #(set-octavation 0)
54   c a 
55   #(set-octavation -1)
56   \set Staff.ottavation = \markup { \concat { 8 \tiny \raise #0.8 vb }}
57   b a g
58   #(set-octavation 0)
59   c 
60   #(set-octavation -1)
61   \set Staff.ottavation = #"8"
62   c,,16
63   #(set-octavation 0)
64   c'16
65   #(set-octavation -1)
66   \set Staff.ottavation = #"8"
67   g,,16
68 }
69
70