# Re: Vertical space above ossia

Sorry Ben, I answer with a photo. Actually the demand is
both, to make the ossia closer to the below staff, and to reduce the
distance with the above staff. But there is an unbreakable space above
the ossia it seems, so the most it can be done is to increase the
space between all staffs in the score to make them equally spaced, but
this cannot be reduced beyond some point.

This can be easily done using a markup instead the ossia code of the
manual, as I said in one of my posts. I attach what I achieve with the
markup, but can't achieve with the actual ossia code. This is the code
for the attached:

\version "2.19.32"

\new Staff = "main" \relative {
\repeat unfold 4 {  c''4 b d c} \break
c4 b d c c^\markup {
\score {
\new Staff \with {
\remove "Time_signature_engraver"
alignAboveContext = #"main"
\magnifyStaff #2/3
firstClef = ##f
}

\relative c''  { e4 d f e  \bar "|"}
\layout { }
}
} \repeat unfold 2 {  c4 b d c} \break
\repeat unfold 4 {  c4 b d c} \break
\repeat unfold 4 {  c4 b d c} \break
c4 b c2
}

\paper {
system-system-spacing =
#'((basic-distance . 10)
(minimum-distance . 1)
(stretchability . 6))
}

Thanks,
Walter

* Ben, soundsfromso...@gmail.com [17/05/18 16:54]:
> I am confused, your original post said you wanted the ossia closer to the
> BELOW staff. Which my final code provides. My first code attempt offered the
> relationship to the staff above, my mistake.
>
> But what is the end result you want? Can you share a photo or?
>
> On 5/17/2018 10:50 AM, Walter Garcia-Fontes wrote:
> > * Ben, soundsfromso...@gmail.com [17/05/18 16:39]:
> > > On 5/17/2018 10:13 AM, Walter Garcia-Fontes wrote:
> > > > * Ben, soundsfromso...@gmail.com [17/05/18 15:52]:
> > > > > On 5/17/2018 9:34 AM, Walter Garcia-Fontes wrote:
> > > > > > * Ben, soundsfromso...@gmail.com [17/05/18 12:05]:
> > > > > > > On 5/17/2018 2:01 AM, Walter Garcia-Fontes wrote:
> > > > > > > > I'm having trouble eliminating vertical space above an Ossia
> > > > > > > > snippet. This is the example of the manual, augmented to extend
> > > > > > > > over
> > > > > > > > multiple lines:
> > > > > > > >
> > > > > > \version "2.19.32"
> > > > > >
> > > > > >
> > > > > > \new Staff = "main" \relative {
> > > > > > \repeat unfold 4 {  c''4 b d c} \break
> > > > > > \repeat unfold 4 {  c4 b d c}
> > > > > >      <<
> > > > > >        { c4 b d c }
> > > > > >
> > > > > >        \new Staff \with {
> > > > > >          \remove "Time_signature_engraver"
> > > > > >          alignAboveContext = #"main"
> > > > > >          \magnifyStaff #2/3
> > > > > >          firstClef = ##f
> > > > > >         \override VerticalAxisGroup #'default-staff-staff-spacing =
> > > > > > #'(
> > > > > > (basic-distance . 0)
> > > > > > (minimum-distance . 0)
> > > > > > (padding . 1.5)
> > > > > > (stretchability . 90) )
> > > > > >        }
> > > > > >        { e4 d f e }
> > > > > >      >>
> > > > > > \break
> > > > > > \repeat unfold 4 {  c4 b d c}
> > > > > >      c4 b c2
> > > > > > }
> > > > > >
> > > > > > > > The vertical distance above the ossia I could not reduce no
> > > > > > > > matter how
> > > > > > > > much I tweaked the numbers in the override, and so the distance
> > > > > > > > between the two lines with ossia in the middle is different
> > > > > > > > from the
> > > > > > > > rest. I also tried "staff-staff-spacing" instead of
> > > > > > > > "default-staff-staff-spacing" but there is no change.
> > > > > > > >
> > > > > > > > Is it possible to reduce the vertical distance above the ossia?
> > > > > > > > I
> > > > > > > > gave up and ended up doing the ossia with music included in a
> > > > > > > > markup,
> > > > > > > > for the markup I know how to tweak all vertical distances.
> > > > > > > >
> > > > > > > You could always try to approach from the paper block? :) Does
> > > > > > > that work for
> > > > > > > your needs?
> > > > Thanks Ben,
> > > >
> > > > This is exactly what I try in my snippet. I've also tried to put the
> > > > override in the general score and in the paper block, but those lines
> > > > refuse to get closer no matter what I try.
> > > >
> > > (see attached) :)
> > >
> > > Oh, now I understand. Then just do this:
> > >
> > >    \override VerticalAxisGroup.staff-staff-spacing =
> > >
> > > %%%%%%%%%%%%
> > > \version "2.19.32"
> > >
> > > \new Staff = "main" \relative {
> > > \repeat unfold 12 {  c''4 b d c} \break
> > > \repeat unfold 12 {  c4 b d c}
> > >    <<
> > >      { c4 b d c }
> > >
> > >      \new Staff \with {
> > >
> > >        \remove "Time_signature_engraver"
> > >        alignAboveContext = #"main"
> > >        \magnifyStaff #2/3
> > >        firstClef = ##f
> > >      \override VerticalAxisGroup.staff-staff-spacing =
> > >      #'(
> > >          (basic-distance . 0)
> > >          (minimum-distance . 0)
> > >          (padding . .5)
> > >          (stretchability . 90)
> > >          )
> > >      }
> > >      { e4 d f e }
> > >    >>
> > > \break
> > > \repeat unfold 4 {  c4 b d c}
> > >    c4 b c2
> > > }
> > >
> > > \paper {
> > >    system-system-spacing =
> > >      #'((basic-distance . 12)
> > >         (minimum-distance . 1)
> > >         (padding . 1)
> > >         (stretchability . 6))
> > > }
> > Thanks, that looks better. There is still in my opinion too much space
> > above the ossia, and if you want to make the staffs equally space,
> > this imposes a large space between them.
> >
> > Is it impossible to tweak the vertical space above the ossia at all?
> >
>

--
Walter Garcia-Fontes
L'Hospitalet de Llobregat


mwe3.pdf
_______________________________________________