The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse by title Contributing Snippet database Browsing items 0−9 out of 939

Positioning a \fermata over the last bar line

To position a \fermata sign over the last bar line, you must use a specially modified rehearsal mark

\override Score.RehearsalMark
  #'break-visibility = #begin-of-line-invisible

Positioning a \fermata over the last bar line

Connecting groups of beamed notes with a single beam

Groups of beamed notes can be connected with a settable number of beams using the stemRightBeamCount and stemLeftBeamCount properties.

Connecting groups of beamed notes with a single beam

Distancing an accidental from the note using the right padding property

It is possible to distance an accidental from the note head by setting suitably the right-padding property of AccidentalPlacement.

Distancing an accidental from the note using the right padding property

Creating blank staves

To create blank staves, generate empty measures then remove the Bar_number_engraver from the Score context, and the Time_signature_engraver, Clef_engraver and Bar_engraver from the Staff context.

Creating blank staves

Scaling durations

You can alter the length of duration by a fraction N/M appending `*N/M' (or `*N' if M=1). This will not affect the appearance of the notes or rests produced.

Scaling durations

Moving around objects in the printout using the extra-offset property

The extra-offset property, which has a pair of numbers as value, moves around objects in the printout. The first number controls left-right movement; a positive number will move the object to the right. The second number controls up-down movement; a positive number will move it higher. The units of these offsets are staff-spaces. The extra-offset property is a low-level feature: the formatting engine is completely oblivious to these offsets.

Moving around objects in the printout using the extra-offset property

Making an object invisible with the 'transparent property

Setting the transparent property will cause an object to be printed in invisible ink: the object is not printed, but all its other behavior is retained. The object still takes up space, it takes part in collisions, and slurs, ties and beams can be attached to it.

This snippet demonstrates how to connect different voices using ties. Normally, ties only connect two notes in the same voice. By introducing a tie in a different voice, and blanking the first up-stem in that voice, the tie appears to cross voices.

Making an object invisible with the 'transparent property

Increasing distance between symbols that are printed above or below notes

The padding property for objects with side-position-interface can be set to increase distance between symbols that are printed above or below notes.

Increasing distance between symbols that are printed above or below notes

Positioning two opposite \fermata signs over the last bar line

To position two fermata signs on the last bar line (a typical setup in XVIII century music) add the Mark_engraver to the lower staff using \with.

Positioning two opposite \fermata signs over the last bar line

Single staff template with notes, lyrics, chords and frets

Here is a simple lead sheet template with melody, lyrics, chords and fret diagrams.

Single staff template with notes, lyrics, chords and frets

1 2 3 4 5 6 7 8 9 10 Next ⇨