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.
heavily-customized-polymetric-time-signatures.ly
Though the set-time-signature thing was not the most essential here, it has been included to show the beat of this piece (which is a template of a real balkan song!).
making-some-staff-lines-thicker-than-the-others.ly
For pedagogical purposes, you may want to make one staff line thicker (e.g. the middle line, to emphasize the line of the G clef). This can be achieved by adding extra lines very close to the line you want to make thicker, using the #'line-positions property in the StaffSymbol context.
putting-parentheses-around-a-note.ly
As children do not always have hands large enough, say, to plays octavas when studying piano, or anything else, it can be useful to add parentheses around a low note for example. In this snippet, the "parenthesized" note is made a bit smaller using the weak command on the #'font-size property.
using-grid-lines-to-emphasize-rhythms-and-notes-synchronization.ly
Regular vertical lines can be drawn between staves to show notes synchronization; however, in case of monophonic music, you may want to make the second stave invisible, and make the lines shorter like in this snippet.
white-text-on-black-background.ly
If you want to print some white text on black background, here's the trick:
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.