lilypond-devel
[Top][All Lists]
Advanced

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

Did VerticalAxisGroup default-staff-staff-spacing stop respecting paddin


From: Trevor Bača
Subject: Did VerticalAxisGroup default-staff-staff-spacing stop respecting padding in 2.17.10?
Date: Thu, 7 Feb 2013 01:35:17 -0500

Hi,

Did VerticalAxisGroup's default-staff-staff-spacing property stop respecting the 'padding' attribute between 2.17.9 and 2.17.10?

I ask because I use a custom time signature context in my scores.

Short examples using the custom time signature context under 2.17.9 and 2.17.10 are attached. You can see that the time signatures in the 2.17.9 example float in their own context positioned happily above the notes. But the time signatures in the 2.17.10 example have fallen and intermingle with the notes.

Here's the code to the complete example.

### BEGIN CUSTOM TIME SIGNATURE CONTEXT EXAMPLE ###

\version "2.17.11"

\layout {
    ragged-right = ##t
    \context {
        \type Engraver_group
        \name TimeSignatureContext
        \consists Axis_group_engraver
        \consists Time_signature_engraver
        \override TimeSignature #'color = #red
        \override TimeSignature #'X-extent = #'(0 . 0)
        \override TimeSignature #'X-offset = #ly:self-alignment-interface::x-aligned-on-self
        \override TimeSignature #'Y-extent = #'(0 . 0)
        \override TimeSignature #'break-align-symbol = ##f
        \override TimeSignature #'break-visibility = #end-of-line-invisible
        \override TimeSignature #'font-size = #1
        \override TimeSignature #'self-alignment-X = #center
        \override VerticalAxisGroup #'default-staff-staff-spacing = #'((basic_distance . 0) (minimum_distance . 10) (padding . 6) (stretchability . 0))
    }
    \context {
        \Score
        \remove Bar_number_engraver
        \accepts TimeSignatureContext
        \override SpacingSpanner #'strict-grace-spacing = ##t
        \override SpacingSpanner #'strict-note-spacing = ##t
        \override SpacingSpanner #'uniform-stretching = ##t
        proportionalNotationDuration = #(ly:make-moment 1 48)
    }
    \context {
        \Staff
        \remove Time_signature_engraver
    }
    \context {
        \RhythmicStaff
        \remove Time_signature_engraver
    }
}
\score {
    \context Score = "Grouped Rhythmic Staves Score" <<
        \context TimeSignatureContext = "TimeSignatureContext" {
            {
                \time 1/8
                s1 * 1/8
            }
            {
                \time 2/8
                s1 * 1/4
            }
            {
                \time 3/8
                s1 * 3/8
            }
        }
        \context StaffGroup = "Grouped Rhythmic Staves Staff Group" <<
            \context RhythmicStaff = "Staff 1" {
                \context Voice = "Voice 1" {
                    {
                        c'16 [
                        c'16
                        c'16
                    }
                    {
                        c'16
                        c'16
                        c'16
                    }
                    {
                        c'16
                        c'16
                        c'16
                    }
                    {
                        c'16
                        c'16
                        c'16 ]
                    }
                }
            }
        >>
    >>
}

### END EXAMPLE ###


It looks to me like padding is no longer functioning the same way in VerticalAxisGroup.

Can anyone confirm?

(Testing shows the problem to be present in 2.17.10 and 2.17.11; versions from 2.17.9 and earlier are fine.)

Trevor.


--
Trevor Bača
address@hidden

Attachment: custom-time-signature-context-with-2-17-10.png
Description: PNG image

Attachment: custom-time-signature-staff-with-2-7-9.png
Description: PNG image


reply via email to

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