AAA-intro.ly

Introduction

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.

[image of music]

attaching-an-arpeggio-to-different-voices-inside-a-same-staff.ly

If you've read the manual, you already know that an arpeggio can be drawn across to staves in PianoStaff context, if you set the connectArpeggios property.

However, printing an arpeggio between two simultaneous chords inside a same staff (with more than one voice), is a bit more tricky. As the Span_arpeggio_engraver, which is in charge when arpeggios have to be connected, is not included by default in the Staff context, you have to add it by yourself using the \consists command.

[image of music]

breathing-sign.ly

Breathing signs are available in different tastes: commas (default), ticks, vees and `railroad tracks' (caesura).

[image of music]

combining-dynamics-with-markup-texts.ly

Some dynamics may involve text indications (such as "più forte", "piano subito", etc.). They can be produced using a \markup bloc.

[image of music]

fingering-chords.ly

With the new chord syntax, it is possible to associate fingerings uniquely with notes. This makes it possible to add horizontal fingerings to notes.

[image of music]

glissando.ly

Between notes, there may be simple glissando lines. Here, the first two glissandi are not consecutive.

The engraver does no time-keeping, so it involves some trickery to get > working correctly.

[image of music]

how-to-print-a-classical-trill-combining-acciaccatura,-trillspan-and-aftergrace.ly

Here is an excerpt of Mozart's KV545 piano Sonata (as brought to Mutopia by A. Sierra), in which you can see the typical classical trill, i.e. beginning with an acciaccatura, then trilling the whole bar, and ending with two afterGrace notes.

This combination, which is rather frequent (if not systematic) in classical piano music, requires a rather precise typesetting: first the \acciaccatura, then the \afterGrace (which you have to define using Scheme-like syntax), then the main note, the TrillSpan and the two final notes (don't forget the curly braces here). You can also notice here the \slurDown, which avoids slurs collision.

[image of music]

line-arrows.ly

Arrows can be applied to text-spanners and line-spanners (such as the Glissando)

[image of music]

line-styles.ly

Displays all available line styles.

[image of music]

setting-the-control-points-of-a-slur-manually.ly

In extreme cases, you can resort to setting the control-points of a slur manually, althout it involves a lot of trial and error. Be sure to force line breaks at both sides, since different horizontal spacing will require rearrangement of the slur.

[image of music]

setting-the-minimum-length-of-a-slur-to-separate-notes.ly

By setting the minimum length of a slur, notes are more separated.

[image of music]

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.