[icon]

GNU LilyPond

Welcome to the home of the GNU Music Typesetter

What is LilyPond
General information
Simple examples
Complex examples
Download
GNU/Linux binaries
Windows
Source code
Documentation
Tutorial
Manual
Glossary
other ...

Support
Mailing lists
Search
WikiWiki
FAQs

External sites
lilypond.org/development
lilypond.org/stable
ftp.lilypond.org
Mutopia
Other music online

Node:spacing-spanner-interface, Next:, Previous:spaceable-element-interface, Up:LilyPond interfaces



spacing-spanner-interface

SPACE = arithmetic_multiplier * ( C + log2 (TIME) )) The space taken by a note is determined by the formula

where TIME is the amount of time a note occupies. The value of C is chosen such that the smallest space within a measure is arithmetic_basicspace:

C = arithmetic_basicspace - log2 (mininum (SHORTEST, 1/8))

The smallest space is the one following the shortest note in the measure, or the space following a hypothetical 1/8 note. Typically arithmetic_basicspace is set to a value so that the shortest note takes about two noteheads of space (ie, is followed by a notehead of space):

2*quartwidth = arithmetic_multiplier * ( C + log2 (SHORTEST) ))

{ using: C = arithmetic_basicspace - log2 (mininum (SHORTEST, 1/8)) }
{ assuming: SHORTEST <= 1/8 }

= arithmetic_multiplier *
( arithmetic_basicspace - log2 (SHORTEST) + log2 (SHORTEST) )

= arithmetic_multiplier * arithmetic_basicspace

{ choose: arithmetic_multiplier = 1.0*quartwidth (why?) }

= quartwidth * arithmetic_basicspace

=>

arithmetic_basicspace = 2/1 = 2


If you want to space your music wider, use something like:

arithmetic_basicspace = 4.;


maximum-duration-for-spacing (moment):
space as if a duration of this type is available in this measure. Default value: (unset)
arithmetic-basicspace (number):
see spacing-spanner-interface. Default value: (unset)
arithmetic-multiplier (number):
see spacing-spanner-interface. Default value: (unset)

Go back to index of LilyPond.

Please send GNU LilyPond questions and comments to lilypond-user@gnu.org.

Please send comments on these web pages to lilypond@packages.debian.org

Copyright (c) 1997--2001 Han-Wen Nienhuys and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from LilyPond-1.4.12 (stable-branch) by

Anthony Fok <lilypond@packages.debian.org>, Tue Mar 12 01:35:39 2002 HKT.