The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse by title Contributing Snippet database Browsing items 30−39 out of 935

Setting the extent of objects

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.

Setting the extent of objects

Removing the key signature at the end of a line

According to normal typesetting conventions, LilyPond typesets key changes at the end of the line, when the change appears at a line break. This example shows how to change this default to only print the new key signature at the beginning of the next line.

Removing the key signature at the end of a line

Inserting a temporary ossia

A temporary ossia in an instrumental part may be printed using a separate, short staff. A simpler solution is also given: instantiate a full staff, and let RemoveEmptyStaffContext take out the unused parts.

Inserting a temporary ossia

Spacing notes using an invisible staff

When entering partially typeset music (i.e. for students to be completed by hand), you may need the spacing that correspond to the timing of notes: all measures have same length, etc. It can be implemented by adding an invisible staff with a lot of fast notes.

Spacing notes using an invisible staff

Engraving music using Scheme expressions

You can engrave music using just Scheme expressions. Although those expressions reflect the inner mechanism of LilyPond, they are rather clumsy to use, so avoid them, if possible.

Engraving music using Scheme expressions

Removing time signature and bar lines

Engravers can be removed one by one. Here, the time signature and bar lines have been removed.

Removing time signature and bar lines

Mensural note heads

Mensural notes may also have note heads.

Mensural note heads

Changing properties for individual grobs

The \applyOutput command allows the tuning of any layout object, in any context. It requires a Scheme function with three arguments.

Changing properties for individual grobs

Making some staff lines thicker than the others

For educational purposes, a staff line can be thickened (e.g., the middle line, or to emphasize the line of the G clef). This can be achieved by adding extra lines very close to the line that should be emphasized, using the line-positions property of the StaffSymbol object.

Making some staff lines thicker than the others

Naming a whole GrandStaff

You can have a name for the whole GrandStaff in addition to individual Staffs.

Naming a whole GrandStaff

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