This document shows examples from the LilyPond Snippet Repository.
In the web version of this document, you can click on the file name or figure for each example to see the corresponding input file.
This snippet shows of to use the alignBelowContext
and
alignAboveContext
properties, which may be needed for text
elements (e.g. lyrics) positioning, but also for musical contents such
as ossias.
By setting properties in NonMusicalPaperColumn
, vertical spacing
of alignments can be adjusted per system.
By setting alignment-extra-space
or
fixed-alignment-extra-space
an individual system may be
stretched vertically.
For technical reasons, \overrideProperty
has to be used for
setting properties on individual objects. \override
in a
\context
block may still be used for global overrides.
displaying-the-exact-extent-of-a-system.ly
If you want to see exactly what amount of space takes your system, you can display it by overriding the #'stencil property in the System context: as you can see here, the system size is determined by including every postscript element such as slurs or key symbol.
By setting the Scheme property 'debug-skylines, you can turn your score into a nice funky artwork :-) More seriously, drawing this skyline can be helpful to debug spacing and collision issues. (Still, it does make your score pretty; so just try it, no matter how much you really need to...)
Page labels may be placed inside music or at top-level, and refered to in markups.
By setting properties in NonMusicalPaperColumn
, vertical spacing
of page layout can be adjusted.
For technical reasons, overrideProperty
has to be used for
setting properties on individual objects. \override
may still be
used for global overrides.
By setting annotate-spacing
, we can see the effect of each
property.
Proportional notation can be created by setting
proportionalNotationDuration
. Notes will be spaced proportional
to the distance for the given duration.
proportional-strict-grace-notes.ly
With strict-note-spacing
spacing for grace notes (even multiple
ones) is floating as well.
proportional-strict-notespacing.ly
If strict-note-spacing
is set spacing of notes is not influenced
by bars or clefs part way along the system. Rather, they are put just
before the note that occurs at the same time. This may cause
collisions.
setting-the-extent-of-objects.ly
The object may be extended to larger sized by overriding their
properties. The lyrics in this example have an extent of
(-10,10)
, which is why they are spaced so widely.
This page is for LilyPond-2.11.28 (development-branch).
Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.
Your suggestions for the documentation are welcome.