%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "/lilypond-2.26.0/input/regression/rest-collision.ly"
\sourcefileline 0

\version "2.19.21"
\header{
  texidoc="
Rests should not collide with beams, stems and noteheads.  Rests may
be under beams.  Rests should be move by integral number of spaces
inside the staff, and by half spaces outside.  Notice that the half
and whole rests just outside the staff get ledger lines in different
cases.
"
}

\layout { ragged-right = ##t }

scale =  \relative {
  c'8 d e f g a b c c d e f g a b c

}
rests =              {
  r r r  r r r r r r r r r r r r r
} 
different = <<  {
  \relative {
    r8 a' e4 a e
  }
}\\ {
  
  \relative c'' {
    r1
  }} >>

scales = \context Staff  <<
  {  r1 r2 r2   \scale    c''1 c'2 a'2 \rests  }
  \\
  { a'1 a'2 d'2 \rests r1 r2 r2  \scale }
>>

restsII = \context Staff  {
  r4 r8
  \context Staff << {  r8 } \\{  r8} >>
  \context Staff << { r8} r8 \\{  r8} >>
  \context Staff << { r8} r8 r8 \\ {  r8} >>
  \context Staff << { r} \\ {  r} >>
  \context Staff << { r} r\\ { \stemDown r} >>
  \different	
}


{ 
  \scales 
  \restsII 
}

	






% ****************************************************************
% end ly snippet
% ****************************************************************
