lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to increase the distance between staves?


From: Thomas Morley
Subject: Re: How to increase the distance between staves?
Date: Wed, 24 Jul 2019 18:03:07 +0200

Am Mi., 24. Juli 2019 um 14:26 Uhr schrieb Jean ABOU SAMRA <address@hidden>:
>
> Hi Peter,
> Any overrides you can do in StaffGrouper are related to the space between 
> staves
> of the _same_ system when they are grouped in StaffGroup-s or such.

Nope.
StaffGrouper.staffgroup-staff-spacing will affect spacing between
StaffGroups in the same system, yes.
But, \override StaffGrouper.staff-staff-spacing.padding _will_ staces
of a StaffGroup.

Below some large example(s). It demonstrates several possibilities,
but still excludes others.
User-settable spacing in LilyPond is a _very_ complex matter.
Mostly because there are so many possibilities, from own experience I
can say: it's not exactly easy to find the correct command(s) and/or
their combination(s).

HTH,
  Harm

\version "2.19.83"

mus = { R1 \break R }

staff-group =
  <<
      \new Staff  \mus
      \new Staff  \mus
  >>

%%%%%%%%
%% One StaffGroup per system
%%%%%%%%

\bookpart {
  \markup \rounded-box \fill-line { "One StaffGroup per system, default" }
  \new StaffGroup
    \staff-group

  \markup \rounded-box \fill-line {
      "One StaffGroup per system, changed spacing between
staves via StaffGrouper.staff-staff-spacing"
  }
  \new StaffGroup
    \with {
      \override StaffGrouper.staff-staff-spacing.padding = #30
    }
    \staff-group
}


\bookpart {
  \markup \rounded-box \fill-line {
      \wordwrap-string #"One StaffGroup per system, changed spacing between
StaffGroups via paper-setting of \"system-system-spacing.padding\""
  }
  \paper {
    system-system-spacing.padding = 30
  }
  \new StaffGroup
    \staff-group
}

\bookpart {
  \markup \rounded-box \fill-line {
      "One StaffGroup per system, distributed over whole page via paper-setting
of \"ragged-last-bottom\", "
  }
  \paper {
    ragged-last-bottom = ##f
  }
  \new StaffGroup
    \staff-group
}

%%%%%%%%
%% Two StaffGroup per system
%%%%%%%%

\bookpart {
  \markup \rounded-box \fill-line {
      \wordwrap-string #"Two StaffGroup per system, changed spacing between
the two StaffGroups via StaffGrouper.staffgroup-staff-spacing"
  }
  <<
    \new StaffGroup
      \with {
        \override StaffGrouper.staffgroup-staff-spacing.padding = 30
      }
      \staff-group
    \new StaffGroup
      \staff-group
  >>
}

\bookpart {
  \markup \rounded-box \fill-line {
      \wordwrap-string #"Two StaffGroups per system, distributed over whole page
via paper-setting of \"ragged-last-bottom\", and several spacing-variables
with stretchability set to a high value in order to give LilyPond full freedom
to space as she likes."
  }
  \paper {
    ragged-last-bottom = ##f
    system-system-spacing.stretchability = 1000
    markup-system-spacing.stretchability = 1000
    last-bottom-spacing.stretchability = 1000
  }
  <<
    \new StaffGroup
      \with {
        \override StaffGrouper.staffgroup-staff-spacing.stretchability = 1000
        \override StaffGrouper.staff-staff-spacing.stretchability = 1000
      }
      \staff-group
    \new StaffGroup
      \with {
        \override StaffGrouper.staff-staff-spacing.stretchability = 1000
      }
      \staff-group
  >>
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]