Space between clef and key and time signature

View: New views
5 Messages — Rating Filter:   Alert me  

Space between clef and key and time signature

by Jiri Zurek (Prague) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When making a score smaller, everything is squeezed very well, except that the gap between the key signature and the clef remains very large and also the distance between the time signature and the first note remains big. It seems that Lilypond does not automatically controll these distances to set them proportinonally smaller when the score is made smaller as whole. Anyway, how can I controll these distances manually, please?
For an example, please see the following lines:
%begin Lily - Example

\version "2.12.2"
\paper {
    indent = 0.0
    ragged-right = ##t
    ragged-last = ##t
  }
 
  \score { \new Staff \relative c'
            {  \key f \minor
        f2 a4 c2 a4 bes2 g'4 f8 e e4 d c f e d c b a
            }
    \layout {
      \context {
        \Staff
        fontSize = #-11
        \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
        \override StaffSymbol #'staff-space = #(magstep -11)
        \override StaffSymbol #'thickness = #(magstep -11)
      }
    }
  }
 
  \score { \new Staff \relative c'
            {  \key f \minor
        f2 a4 c2 a4 bes2 g'4 f8 e e4 d c f e d c b a
            }
    \layout {  
    }
  }
%end Lily -Example

Re: Space between clef and key and time signature

by Bugzilla from reinhold@kainhofer.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Freitag, 6. November 2009 12:14:52 schrieb Jiri Zurek (Prague):
> When making a score smaller, everything is squeezed very well, except that
> the gap between the key signature and the clef remains very large and also
> the distance between the time signature and the first note remains big. It
> seems that Lilypond does not automatically controll these distances to set
> them proportinonally smaller when the score is made smaller as whole.

Also note that the bar lines don't seem to scale down. They still have the
same with as the "large" staff has.
Cheers,
Reinhold
- --
- ------------------------------------------------------------------
Reinhold Kainhofer, reinhold@..., http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFK9Af8TqjEwhXvPN0RAjNrAKCMD9/NN11dPk9U9adEHssHA7PwUACfWeDL
EMFoFdm68kveqhBxC0LxxFU=
=Q2cq
-----END PGP SIGNATURE-----


_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Space between clef and key and time signature

by Simon Bailey-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

jiri,

On 6 Nov 2009, at 12:14, Jiri Zurek (Prague) wrote:

> When making a score smaller, everything is squeezed very well,  
> except that
> the gap between the key signature and the clef remains very large  
> and also
> the distance between the time signature and the first note remains  
> big. It
> seems that Lilypond does not automatically controll these distances  
> to set
> them proportinonally smaller when the score is made smaller as whole.
> Anyway, how can I controll these distances manually, please?
> For an example, please see the following lines:


have a look at the space-alist properties of the Clef, KeySignature  
and the TimeSignature objects. looks like there are a number of  
properties there which are fixed staff-sizes. changing these values  
compresses the spacing of the Clef, TimeSignature and KeySignature  
objects. the properties have names which are fairly comprehensible,  
however you will have to experiment to find the exact values you want.

regards,
sb
--
Simon Bailey
Oompa Loompa of Science
+43 699 190 631 25



_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Space between clef and key and time signature

by Jiri Zurek (Prague) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Simon Bailey-5 wrote:
have a look at the space-alist properties of the Clef, KeySignature  
and the TimeSignature objects. looks like there are a number of  
properties there which are fixed staff-sizes. changing these values  
Indeed. I found the space-alist properties very useful and when changed, the clef, key signature and time signature are squeezed properly. Since I find the orientation in the on-line documentation extremely difficult - I am perhaps too little technically oriented and I would prefer much more verbose documentation - I copy the lilypond code here for those who would perhaps search this forum for the help on the same topic (I usually do the same to find answers for my question) - the answer will be prepared for them right away:

%begin Lily - Example - clef, key and time signature squeezed together

\version "2.12.2"
\paper {
    indent = 0.0
    ragged-right = ##t
    ragged-last = ##t
  }
 
  \score { \new Staff \relative c'
            {  
        f2 a4 c2 a4 bes2 g'4 f8 e e4 d c f e d c b a
            }
    \layout {
      \context {
        \Staff
        \override Clef #'space-alist #'first-note = #'(extra-space . 0.1)
        \override Clef #'space-alist #'key-signature = #'(minimum-space . 1.0)
        \override Clef #'space-alist #'time-signature = #'(minimum-space . 0.1)
        \override KeySignature #'space-alist #'time-signature = #'(minimum-space . 0.1)
        \override KeySignature #'space-alist #'first-note = #'(extra-space . 0.1)
        \override TimeSignature #'space-alist #'first-note = #'(extra-space . 0.1)
        fontSize = #-11
        \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
        \override StaffSymbol #'staff-space = #(magstep -11)
        \override StaffSymbol #'thickness = #(magstep -11)
      }
    }
  }
 
  \score { \new Staff \relative c'
            {  \key f \minor
        f2 a4 c2 a4 bes2 g'4 f8 e e4 d c f e d c b a
            }
    \layout {  
    }
  }
%end Lily -Example

Re: Space between clef and key and time signature

by Jiri Zurek (Prague) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Reinhold Kainhofer wrote:
Also note that the bar lines don't seem to scale down.
Indeed, also barlines must be scale down in thickness manually. Here, I copy again the example as above, with the barline thickness changed. Thank you for the reminder.

%begin Lily - Example - clef, key and time signature squeezed together, barlines thinner

\version "2.12.2"
\paper {
    indent = 0.0
    ragged-right = ##t
    ragged-last = ##t
  }
 
  \score { \new Staff \relative c'
            {  \key f \minor
        f2 a4 c2 a4 bes2 g'4 f8 e e4 d c f e d c b a \bar "|."
            }
    \layout {
      \context {
        \Staff
        \override Clef #'space-alist #'first-note = #'(extra-space . 0.1)
        \override Clef #'space-alist #'key-signature = #'(minimum-space . 1.0)
        \override Clef #'space-alist #'time-signature = #'(minimum-space . 0.1)
        \override KeySignature #'space-alist #'time-signature = #'(minimum-space . 0.1)
        \override KeySignature #'space-alist #'first-note = #'(extra-space . 0.1)
        \override TimeSignature #'space-alist #'first-note = #'(extra-space . 0.1)
        \override BarLine #'hair-thickness = #0.3
        \override BarLine #'thick-thickness = #1.7        
        fontSize = #-11
        \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
        \override StaffSymbol #'staff-space = #(magstep -11)
        \override StaffSymbol #'thickness = #(magstep -11)
      }
    }
  }
 
  \score { \new Staff \relative c'
            {  \key f \minor
        f2 a4 c2 a4 bes2 g'4 f8 e e4 d c f e d c b a \bar "|."
            }
    \layout {  
    }
  }
%end Lily -Example