bug-lilypond
[Top][All Lists]
Advanced

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

Issue 1317 in lilypond: between-staff-spacing doesn't scale when changin


From: lilypond
Subject: Issue 1317 in lilypond: between-staff-spacing doesn't scale when changing staff size
Date: Sun, 10 Oct 2010 14:21:36 +0000

Status: Accepted
Owner: ----
CC: joeneeman
Labels: Type-Defect Priority-Medium Spacing

New issue 1317 by v.villenave: between-staff-spacing doesn't scale when changing staff size
http://code.google.com/p/lilypond/issues/detail?id=1317

% Reported by Marten Visser http://lists.gnu.org/archive/html/bug-lilypond/2010-10/msg00123.html

%{
 spacing between staves of pianoStaff does not scale with staff size.
between-staff-spacing #'padding and #'spacing should be relative to the actual staff size, but it's relative to default staff size.

You'd expect the distance to scale linearly with the staff size, so that you can generate output for a smaller paper size - 'just scale everything up/down'.
%}

\version "2.13.35"

TheNotes = { c''4 a' e'8 c' e'4 }

TheScore = #(define-music-function (parser location UseSize) (number?)
#{
  \new PianoStaff \with {
instrumentName = #(markup #:normal-text "Staff size:" (number->string $UseSize))
  } <<
      \new Staff \with {
        fontSize = #$UseSize
        \override StaffSymbol #'staff-space = #(magstep $UseSize)
      } \TheNotes
      \new Staff \with {
        fontSize = #$UseSize
        \override StaffSymbol #'staff-space = #(magstep $UseSize)
      } \TheNotes
  >>
#})

\score {
  \TheScore #-3
}

\score {
  \TheScore #0
}

\score {
  \TheScore #3
}

%{
In addition, the staff space (measured in pixels) for the default settings is not exactly constant as well. The spacing for size 0 is the smallest, and __both__ size +3 and -3 have larger between-staff-spacing. See attached, where the box between the staves indicates the height of the size 0 default settings between staff space.
%}

%% Vertical spacing has changed quite a lot since the last stable release -> has this ever worked, which would make this a Regression?

Attachments:
        staff-scaling default measures.png  15.4 KB




reply via email to

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