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