lilypond-user
[Top][All Lists]
Advanced

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

Re: Changing the ossia staff distance to another staff


From: Kieren MacMillan
Subject: Re: Changing the ossia staff distance to another staff
Date: Fri, 12 Jan 2018 12:08:49 -0500

Hi Jacques,

> whichever values I choose for basic-distance and minimum-distance in 
> default-staff-staff-spacing

You want staff-staff-spacing. See modified snippet, below.
Also note that I used a custom OssiaStaff context, to simplify your note-code 
(and make it more reusable).

Hope this helps!
Kieren.

%%%  SNIPPET BEGINS
\version "2.19.80"

\layout {
  \context {
    \Staff
    \name OssiaStaff
    \alias Staff
    \remove "Time_signature_engraver"
    alignAboveContext = #"up"
    \magnifyStaff #2/3
    \remove "Clef_engraver"
    \override VerticalAxisGroup.staff-staff-spacing =
    #'(
        (basic-distance . 0)
        (minimum-distance . 0)
        (padding . 1.5)
        (stretchability . 90)
        )
  }
  \context {
    \PianoStaff
    \accepts OssiaStaff
  }
}

\new PianoStaff <<
  \new Staff = "up" \relative {
    c''4 b d c
    <<
      { c4 b d c }
      \new OssiaStaff { e4 d f e }
    >>
    c4 b c2
  }
  \new Staff = "down" \relative {
    c''4 b d c |
    c4 b d c |
    c4 b d c |
  }
>>
%%%  SNIPPET ENDS
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden




reply via email to

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