bug-lilypond
[Top][All Lists]
Advanced

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

Re: incorrect vertical spacing in pianostaff


From: Patrick McCarty
Subject: Re: incorrect vertical spacing in pianostaff
Date: Thu, 7 Oct 2010 18:56:25 -0700

On Thu, Oct 7, 2010 at 5:24 AM, Marten Visser <address@hidden> wrote:
>
> 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
>        >>
> }

The default value for #'between-staff-spacing #'padding is "1", and
the default value for #'between-staff-spacing #'space is "9".

So, if I understand correctly, are you saying that the default
settings (without overrides) also scale inappropriately?

Attached is an image of your example without overriding #'between-staff-spacing.

Thanks,
Patrick

Attachment: staff-scaling.png
Description: PNG image


reply via email to

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