------ Weitergeleitete Nachricht ------
Von: "musicus" <tomtom-ilm...@web.de>
An: kieren_macmil...@sympatico.ca
Gesendet: 16.01.2016 21:43:55
Betreff: Solution for: new Staff staff-staff-spacing (down AND up) regarding only one single system

Hi all,

After i tried Kieren's suggestion (absolute system positioning) and didn't get reliable results (if page layout changes, you have to adjust the settings) i got lucky and found an IMO reasonable way to achieve my wanted "reduced spacing regarding inserted staff".

See attached.

Basically you replace the upper Staff with a new one for one line and assign a custom spacing number to it. The only limitation is, that you have to set manual line breaks for the specific system.

Hope this will help others.

Best Regards,
musicus
\version "2.19.34"

\paper {
  system-system-spacing.padding = 8
  paper-width = 10\cm
}

\layout {
  \context {
    \Staff \RemoveEmptyStaves
  }
  \context {
    \GrandStaff
    \override VerticalAxisGroup.staff-staff-spacing.padding = 5
  }
}

\score {
  \new GrandStaff
  <<
    \new Staff = "one" \relative c'' {
      a a a a
      \break
      \new Staff = "workaround" \with {
        alignAboveContext = "two"
        \override VerticalAxisGroup.staff-staff-spacing.padding = 1
      }{
        a a
        <<
          { a a }
          \new Staff = "middle" \with {
            \override VerticalAxisGroup.staff-staff-spacing.padding = 1
            alignAboveContext = "two"
            alignBelowContext = "workaround"
          }{
            a a
          }
        >>
      }
      \break
      a a a a
    }
    \new Staff = "two" {
      a a a a
      a a a a
      a a a a
    }
  >>
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to