The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse by title Contributing Snippet database Browsing items 10−19 out of 940

Vertical line as a baroque articulation mark

This short vertical line placed above the note is commonly used in baroque music. Its meaning can vary, but generally indicates notes that should be played with more weight. The following example demonstrates how to achieve such a notation.

Vertical line as a baroque articulation mark

Moving notes or chords in collisions horizontally using the force-hshift property

You can manually determine the horizontal shift of a note or a chord when it collides with notes in other voices, using the NoteColumn #'force-hshift property. Overriding this property will appropriately move all objects associated with the note or chord—that is, the stem with all its noteheads, ledger lines, augmentation dots and beams.

Note that this technique will only work when the notehead collides with noteheads in other voices, and has no effect in monophonic situations.

Moving notes or chords in collisions horizontally using the force-hshift property

Adding augmentation dots

To obtain dotted note lengths, simply add a dot (`.') to the number. Double-dotted notes are produced in a similar way.

Adding augmentation dots

Spacing out percent repeats with hidden notes

If you don't like the spacing used for percent repeats, you can enlarge the percent bars by suitably adding hidden notes.

Spacing out percent repeats with hidden notes

Distancing the metronome sign

If you're not happy with the distance of the metronome sign from the score, you can alter its position using the padding property of MetronomeMark.

Distancing the metronome sign

Adjusting lyrics vertical spacing

This snippet shows how to bring the lyrics line closer to the staff.

Adjusting lyrics vertical spacing

Outputting the version number

It is possible to print the version number of LilyPond in markup.

Outputting the version number

Staff brackets

Staffs can be nested in various combinations. Here, StaffGroup and ChoirStaff produce similar straight brackets, whereas GrandStaff produces curly brackets. In InnerStaffGroup and InnerChoirStaff, the brackets are shifted leftwards.

Staff brackets

Staff containers

In this preliminary test of a modern score, the staff lines are washed out temporarily. This is done by making a tuned StaffContainer, which \skips some notes without printing lines either and creates a \new Staff then in order to create the lines again. (Be careful if you use this; it has been done by splitting the grouping Axis_group_engraver and creating functionality into separate contexts, but the clefs and time signatures may not do what you would expect.)

Staff containers

Changing the number of lines in a staff

The number of lines in a staff may changed by overriding the StaffSymbol property line-count.

Changing the number of lines in a staff

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