]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/rest-collision.ly
bfbe75b1afe3c2f4e254c0206cf47042110120ab
[lilypond.git] / input / regression / rest-collision.ly
1
2 \version "2.6.0"
3 \header{
4   texidoc="
5 Rests should not collide with beams, stems and noteheads.  Rests may
6 be under beams.  Rests should be move by integral number of spaces
7 inside the staff, and by half spaces outside.  Notice that the half
8 and whole rests just outside the staff get ledger lines in different
9 cases.
10 "
11 }
12
13 scale =  \relative c' {
14   c8 d e f g a b c c d e f g a b c
15
16 }
17 rests =              {
18   r r r  r r r r r r r r r r r r r
19
20 different = <<  {
21   \relative c'' {
22     r8 a e4 a e
23   }
24 }\\ {
25   
26   \relative c'' {
27     r1
28   }} >>
29
30 scales = \context Staff  <<
31   {  r1 r2 r2   \scale    c''1 c'2 a'2 \rests  }
32   \\
33   { a'1 a'2 d'2 \rests r1 r2 r2  \scale }
34 >>
35
36 restsII = \context Staff  {
37   r4 r8
38   \context Staff << {  r8 } \\{  r8} >>
39   \context Staff << { r8} r8 \\{  r8} >>
40   \context Staff << { r8} r8 r8 \\ {  r8} >>
41   \context Staff << { r} \\ {  r} >>
42   \context Staff << { r} r\\ { \stemDown r} >>
43   \different    
44 }
45
46
47
48   \scales 
49   \restsII 
50 }
51 \layout { raggedright = ##t }
52         
53
54
55