bug-lilypond
[Top][All Lists]
Advanced

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

incorrect vertical spacing in pianostaff


From: Marten Visser
Subject: incorrect vertical spacing in pianostaff
Date: Thu, 07 Oct 2010 14:24:24 +0200

> I'm not top posting.

Pertains at least to 2.13.32 and up. Lower versions not tested.

between-staff-spacing #'padding should be relative to the actual staff size, but it's relative to default staff size.

Output for 2.13.35 is attached.

---------------------------------------
%{
Example:
 spacing between staves of pianoStaff does not scale with staff size
Goes wrong in version 2.13.35, but also in 2.13.32. (No other versions tested.)
%}

\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))
                \override StaffGrouper #'between-staff-spacing #'space = #0
                \override StaffGrouper #'between-staff-spacing #'padding = #-10
                }
        <<
                \new Staff = "up"     \with
                {
                        fontSize = #$UseSize
                        \override StaffSymbol #'staff-space = #(magstep 
$UseSize)
                }
                \TheNotes
                \new Staff = "up"     \with
                {
                        fontSize = #$UseSize
                        \override StaffSymbol #'staff-space = #(magstep 
$UseSize)
                }
                \TheNotes
        >>
#}
)


\score {
        <<
                \TheScore #-3
        >>
}

\score {
        <<
                \TheScore #0
        >>
}

\score {
        <<
                \TheScore #3
        >>
}
---------------------------------------

Best,
Marten

Attachment: Incorrect spacing pianostaff (2.13.35).pdf
Description: Adobe PDF document


reply via email to

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