lilypond-user
[Top][All Lists]
Advanced

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

Re: Vertical spacing in 2.13


From: Trevor Bača
Subject: Re: Vertical spacing in 2.13
Date: Tue, 15 Dec 2009 15:31:52 -0500



On Mon, Dec 14, 2009 at 10:46 PM, Joe Neeman <address@hidden> wrote:
On Tue, 2009-12-15 at 12:51 +1100, Nick Payne wrote:
> On 15/12/09 10:56, Joe Neeman wrote:
> > On Tue, 2009-12-15 at 08:01 +1100, Nick Payne wrote:
> >
> >> How is vertical spacing between staves controlled now in 2.13.x? In
> >> s.4.4.1 and s.4.4.2 the NR for 2.13.9 still talks about using \override
> >> Staff.VerticalAxisGroup #'minimum-Y-extent and between-system-padding in
> >> the \paper section, but neither of these now appear to do anything.
> >>
> > Thanks for the reminder; I still need to rewrite these sections.
> > Vertical spacing has changed significantly since 2.13.3ish and there are
> > a lot of new knobs to tweak. The new variables are documented in the
> > internals reference and in section 4.1.2 of the notation reference.
> >
> > You can also find more information about the changes in the list
> > archives. For example, search for the subject "Dead lyrics context still
> > occupies vertical space" in the lily-devel archives.
> >
> If i try the following:
>
> \version "2.13.9"
>
> notes = \relative c' {
>      \repeat unfold 100 { c4 }
> }
>
> \score {
>      \notes
>      \layout {
>          \context {
>              \Staff
>                  \override VerticalAxisGroup #'next-staff-spacing =
> #'((space . 20) (padding . 15) (stretchability . 12) (minimum-distance .
> 12))
>          }
>      }
> }
>
> regardless of the values I put in the alist, the spacing between staves
> doesn't change. What am I doing wrong here?

VerticalAxisGroup #'next-staff-spacing controls the spacing between two
staves in the same system. For spacing between systems, use the
between-system-spacing variable in the \paper block.



Hi Joe,

What about the NonMusicalPaperColumn alignment-offsets list? I put together NR (2.12) 4.3.3 'Explicit staff and system positioning' some time back, mostly as a way of documenting a type of absolute vertical positioning layout that I've used in all of my scores since then. As of 2.13.ish this seemed to stop working. Quick example:


%%% BEGIN EXPLICIT VERTICAL POSITIONING SNIPPET %%%

\version "2.13.9"
%\version "2.12.2"
\include "english.ly"

\new StaffGroup <<
   \new Staff {
      \overrideProperty #"Score.NonMusicalPaperColumn"
      #'line-break-system-details
      #'((Y-offset . 0) (alignment-offsets . (0, -10)))
      c'1 \break
      \overrideProperty #"Score.NonMusicalPaperColumn"
      #'line-break-system-details
      #'((Y-offset . 40) (alignment-offsets . (0, -15)))
      c'1 \break
      \overrideProperty #"Score.NonMusicalPaperColumn"
      #'line-break-system-details
      #'((Y-offset . 80) (alignment-offsets . (0, -20)))
      c'1 \break
      \overrideProperty #"Score.NonMusicalPaperColumn"
      #'line-break-system-details
      #'((Y-offset . 120) (alignment-offsets . (0, -25)))
      c'1 \break
   }
   \new Staff {
      \clef bass
      c'1 c'1 c'1 c'1
   }
>>

%%% END EXPLICIT VERTICAL POSITIONING SNIPPET %%%



The two PDFs attached here show alignment-offsets doing what I would expect in 2.12.2 but no in 2.13.9.

I'm excited about the array of new paper-block settings in the 2.13.x series. Also it is crucial for me to be able to specify absolute staff positions on the page via some mechanism. Will such a thing continue to be possible? (Or maybe it already is with the correct combination of new settings?)

Thanks!

Trevor (B.)



--
Trevor Bača
address@hidden

Attachment: alignment-offsets-2.12.2.pdf
Description: Adobe PDF document

Attachment: alignment-offsets-2.13.9.pdf
Description: Adobe PDF document


reply via email to

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