Update .ly files.
[lilypond.git] / input / regression / ledger-lines-varying-staves.ly
blobf7c78d58496acfa74209d6a36aa37e75c53aa4fa
1 \version "2.12.0"
2 \header {
3 texidoc = "Ledger lines should appear at every other location
4 for a variety of staves using both @code{line-count} and
5 @code{line-positions}."
8 notes = \relative c' {
9 \time 3/4
10 c2. | d | e | f
11 g2. | a | b | c
12 d2. | e | f | g
13 a2.
16 \new Staff {
17 % upper and lower lines both odd
18 #(define mylines '(-1 0 1))
19 \override Staff.StaffSymbol #'line-count = #(length mylines)
20 \override Staff.StaffSymbol #'line-positions = #mylines
21 \notes
24 \new Staff {
25 % upper and lower lines both even
26 #(define mylines '(-2 0 2))
27 \override Staff.StaffSymbol #'line-positions = #mylines
29 \override Staff.StaffSymbol #'line-count = #(length mylines)
30 \notes
33 \new Staff {
34 % lower line odd, upper line even
35 #(define mylines '(-1 0 2))
36 \override Staff.StaffSymbol #'line-positions = #mylines
37 \override Staff.StaffSymbol #'line-count = #(length mylines)
38 \notes
41 \new Staff {
42 % odd line count
43 \override Staff.StaffSymbol #'line-count = #5
44 \notes
47 \new Staff {
48 % even line count
49 \override Staff.StaffSymbol #'line-count = #4
50 \notes