Peter Berlau wrote:

I found a ugly solution
with
\stopStaffs % generates 2 invisible staffs
s1
s1
\startStaff
for this i have to add on same place in the
\chords  also 2
s1
s1
to adjust chords to the remaining bars

In this case you already have a structure amenable to splitting:
 - 34 bars melody
 - 2*4 bars coda
So you could have melody variable and a coda variable,
and introduce a third variable for the gap;
eg it would then be easy to omit the gap from midi.


But I agree that involving s1 is a depressing sort of hack.


See if you like the attached pauseStaffBL hack any better.
No skips needed - it maltreats bar lines instead.
The demo does '\pauseStaffBL 40 \break' at the end of measure 9.


Cheers,
Robin

\version "2.18.0"

pauseStaffBL = 
#(define-music-function (parser location white-width) (number?)
  (define (append-whitebox grob) 
    (let* (
      (stil (ly:bar-line::print grob))
      (yext (ly:stencil-extent stil 1))
      (y-padding 0.2)
      (box-height (interval-widen yext y-padding))
      (box-width (cons 0 white-width)) 
      (box-stil (make-filled-box-stencil box-width box-height))
      (whitebox-stil (stencil-with-color box-stil white
        )))
     (ly:stencil-combine-at-edge stil X RIGHT whitebox-stil 0)))
  #{
    \once \override Score.BarLine.stencil = #append-whitebox 
    \once \override Score.BarLine.layer = 1 % mask StaffSymbol
  #})                                          

Attachment: pauseStaffBL.pdf
Description: Adobe PDF document

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to