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: Jacques Menu Muzhic
Subject: Re: Changing the ossia staff distance to another staff
Date: Fri, 12 Jan 2018 21:27:49 +0100

Hello Kieren,

Brilliant!

This not only helps, it’s a lesson on the fine usage of LilyPond’s 
possibilities.

Thanks so much!

JM

> Le 12 janv. 2018 à 18:08, Kieren MacMillan <address@hidden> a écrit :
> 
> 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]