bug-lilypond
[Top][All Lists]
Advanced

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

Re: inconsistent spacing between piano staves


From: jim cline
Subject: Re: inconsistent spacing between piano staves
Date: Fri, 19 May 2006 18:51:54 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

jim cline <jcline <at> physics.mcgill.ca> writes:

> 
> I managed to use lilypond to typeset a choral piece with decent results,
> but I am now working on my first piano piece, and encountering a strange
> problem.  The first system has much more space (ridiculously too much) 
between 
> the treble and bass staves than the second system.  It is an extension of the 
> simple template for piano music provided by the lilypond documentation.  I 
> tried commenting out the two vertical spacing specifications to see what 
> effect that might have, but the problem remains.  

Here is the .ly file:


\version "2.7.40"
\include "english.ly"
%#(set-global-staff-size 14)
#(set-default-paper-size "letter")
\paper {
  #(define dump-extents #t)
    indent = 0\mm
   line-width = 190\mm 
   between-system-space =10\mm
 top-margin = 0
 bottom-margin = 30\mm
  betweensystempadding = #1
  raggedbottom=##f
  raggedlastbottom=##f
}
\header
{
        title = "Regret"
        composer = "J. Cline"
}

     upper = \relative c'' {
       \clef treble
       \key c \major
       \time 4/4
     
     <<{cs,1\( } \\{c'4\rest a4 gs g}>>         %1
    << {b, af' a bf}\\{s1}>>                            %2
     <<{b4 gs g \times 2/3{\tieDown e8~ e8 e8}}\\{s1}>> %3
    <<{ ef4 c g' e\)}\\{s4}>>                           %4
     <<{a cs'}{s2}>> <<e,4 a c e^->>                    %5
     \times 2/3{<<c,4 c'4>><<c,8 c'8>>} 
    <<{b,4 gs ef'} {b'4 gs ef'}>>                       %6
    \times 2/3 {<< c,4 c'4>> c,8}
    \time 6/8 b8^\markup {                              %7
       (\smaller \general-align #Y #DOWN \note #"4." #1
       =
       \smaller \general-align #Y #DOWN \note #"4" #1 )
        }
        r gs e r ef'
     d c b a r8 a                                       %8
     gs r8 fss gs r c,                                  %9
     e g c ef r ef                                      %10
     d r b g r fs'                                      %11
     f d ef d r d                                       %12
                                
     }
     
     lower = \relative c {
       \clef bass
       \key c \major
       \time 4/4
     
     << cs1\\ {c'4\rest a gs g} >>                      %1
     << gs,1 \\{g'4\rest a gs g}>>                      %2
     <<e,1\\ {c''4\rest c4 b' gs} >>                    %3
     <<gs,,,1 \\{g''4\rest b4 gs e}>>                   %4  
     <<f'1\\{ c,4.\rest e'32 cs a f d2}>>               %5
    \times 2/3{gs,,4 gs'8}\times 2/3                    %6
     {<< {e'4 e8} {a4 a8} {cs4 cs8}>>}
    << fs,4 b4 ds4>> <<gs,4 bs4 ds4>>
    <<{e,8_"senza ped." r4 df,8 r4}{cs''8 r4 af,8 r4}>>%7
    <<{e'8 r4 df,8 r4}{cs''8 r4 af,8 r4}>>              %8
    <<{e'8 r4 df,8 r4}{bs''8 r4 af,8 r4}>>              %9
    <<{e'8 r4 df,8 r4}{ds''8 r4 af,8 r4}>>              %10
    <<{fs'8 r4 ds,8 r4}{ds''8 r4 b,8 r4}>>              %11
    <<{fs'8 r4 b8 r b}{ds8 r4 bf'8 r a}>>               %11
     }
     
     dynamics = {
       
     }
     
     pedal = {
       s2\sustainDown  
     }
     
     \score {
       \new PianoStaff <<
         \new Staff = "upper" \upper
         \new Dynamics = "dynamics" \dynamics
         \new Staff = "lower" <<
           \clef bass
           \lower
         >>
         \new Dynamics = "pedal" \pedal
       >>
       \layout {
         \context {
           \type "Engraver_group"
           \name Dynamics
           \alias Voice % So that \cresc works, for example.
           \consists "Output_property_engraver"
     
           \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
           pedalSustainStrings = #'("Ped." "*Ped." "*")
           pedalUnaCordaStrings = #'("una corda" "" "tre corde")
     
           \consists "Piano_pedal_engraver"
           \consists "Script_engraver"
           \consists "Dynamic_engraver"
           \consists "Text_engraver"
     
           \override TextScript #'font-size = #2
           \override TextScript #'font-shape = #'italic
           \override DynamicText #'extra-offset = #'(0 . 2.5)
           \override Hairpin #'extra-offset = #'(0 . 2.5)
     
           \consists "Skip_event_swallow_translator"
     
           \consists "Axis_group_engraver"
         }
         \context {
           \PianoStaff
           \accepts Dynamics
           \override VerticalAlignment #'forced-distance = #9
         }
       }
     }
     \score {
       \new PianoStaff <<
         \new Staff = "upper" << \upper \dynamics >>
         \new Staff = "lower" << \lower \dynamics >>
         \new Dynamics = "pedal" \pedal
       >>
       \midi {
         \context {
           \type "Performer_group"
           \name Dynamics
           \consists "Piano_pedal_performer"
         }
         \context {
           \PianoStaff
           \accepts Dynamics
         }
       }
     }







reply via email to

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