Can I vary the system width for 1 system only

2015-11-10 Thread Peter Berlau
Hello,

I like to have a Sheet with 34 bars 
divided in 4 bars per system ( line )
2 bars rest
and a coda  8 bars

I know it is just 'cosmetic', but I really like
this, especially as musician, it is a good reminder
that the form is "something special" and avoids 
mistakes if improvising over song...
 
like to have a look like
(other bars similar like the last 4 bars)
C7D-   G7   Cmaj7
|||||last 4 bars melodie

D-G7
||||  % 2bar rest

  D-   Eb   D-   Eb
|:|||:|% coda


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

I think this is pretty ugly and there will be a much better 
solution...

Thanks for advice,
all the best,
 Peter






___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Can I vary the system width for 1 system only

2015-11-13 Thread Robin Bannister

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
  #})  


pauseStaffBL.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Can I vary the system width for 1 system only

2015-11-16 Thread Peter Berlau

Hi Robin,

many thanks!

II will "heavy use" this solution. :)

all the best,
 Peter


Am 13.11.2015 um 22:34 schrieb Robin Bannister:

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




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user