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