]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/rest-collision.ly
(conv): dashes rule.
[lilypond.git] / input / regression / rest-collision.ly
1 #(ly:set-option 'old-relative)
2 \version "1.9.1"
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 =  \notes \relative c' {
14   c8 d e f g a b c c d e f g a b c
15
16 }
17 rests =  \notes             {
18   r r r  r r r r r r r r r r r r r
19
20 different = < \context Voice = one {
21       \stemUp
22       \notes \relative c'' {
23         r8 a e4 a e
24       }
25     }
26     \context Voice = two {
27       \stemDown
28       \notes \relative c'' {
29         r1
30       }} >
31
32 scales =  \context Staff \notes <
33         \context Voice=i { \stemUp r1 r2 r2   \scale    c''1 c'2 a'2 \rests  }
34         \context Voice = ii { \stemDown a'1 a'2 d'2 \rests r1 r2 r2  \scale }
35 >
36
37 restsII =  \context Staff \notes {
38         r4 r8
39         \context Staff < { \stemUp r8 } { \stemDown r8} >
40         \context Staff < {\stemUp r8} r8 { \stemDown r8} >
41         \context Staff < {\stemUp r8} r8 r8 { \stemDown r8} >
42         \context Staff < {\stemUp r} { \stemDown r} >
43         \context Staff < {\stemUp r} r { \stemDown r} >
44         \stemUp
45         \transpose c c' {  c''8[ r8 c''8 c''8]
46          c8[ r8 c8 c8]
47          c8[ r8 r8 c'''8]       
48         \stemDown
49          c8[ r8 c8 c8]
50          c''8[ r8 c''8 c''8]
51          c'8[ r8 r8 c'''8]
52         \different      
53         }
54 }
55
56 \score{
57         \notes { 
58                 \scales 
59                 \restsII 
60         }
61 }       
62
63
64