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