1\version "2.19.21" 2 3\header { 4 texidoc = "The page-turn engraver will not count potential page 5turns if they occur in the middle of a repeat unless there is a 6long gap at the beginning or at the end of the repeat. 7" 8} 9 10\layout { 11 \context { 12 \Staff 13 \consists "Page_turn_engraver" 14 } 15} 16 17\book { 18 \paper { 19 #(define page-breaking ly:page-turn-breaking) 20 paper-height = #80 21 print-page-number = ##t 22 print-first-page-number = ##t 23 } 24 25 \score { 26 \relative { 27 \set Score.skipBars = ##t 28 % this should be kept on one page 29 \repeat volta 2 { 30 \repeat unfold 6 {a4 b c d16 d d d} R1*10 31 \repeat unfold 8 {a4 b c d16 d d d} \pageTurn 32 } 33 % use up a page 34 a4 b c d a b c d \pageBreak 35 36 % this should be allowed to have a page turn 37 \repeat volta 2 { 38 \repeat unfold 7 {a4 b c d16 d d d} R1*10 39 \repeat unfold 7 {a4 b c d16 d d d} R1*3 40 } 41 } 42 } 43} 44