]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/ottava.ly
fix keep-inside-line on the left side (issue #130)
[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 string can be tuned with @code{Staff.ottavation}.
9
10 "
11
12 }
13 \version "2.7.39"
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 slightl 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) b a g 
56   #(set-octavation 0)
57   c 
58   #(set-octavation -1)
59   \set Staff.ottavation = #"8"
60   c,,16
61   #(set-octavation 0)
62   c'16
63   #(set-octavation -1)
64   \set Staff.ottavation = #"8"
65   g,,16
66 }
67
68