The LilyPond Snippet Repository ♪♫

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

Arpeggio bracket

In a score where you've printed many chords with \arpeggio signs, you may want to tell the player that one particular chord must not be arpeggiated. This can be done quite easily by adding a square bracket instead of the arpeggio sign.

Arpeggio bracket

Feathered beams

As explained in the Notation Reference, feathered beams can be obtained by setting the #'grow-direction property; you may also want to use \featherDurations to adjust note durations.

Feathered beams

Fine-tuning manual beaming

By setting the #'beaming property, it is possible to override beaming rules. You may preferably want to use \once when doing so, as this property cannot be shared between objects.

Fine-tuning manual beaming

Short tremolos

Short tremolos (involving eighth notes or shorter durations) can be obtained; in such a case only one beam is connected to the stems.

Short tremolos

Putting parentheses around a note inside a chord

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 \tweak command on the #'font-size property.

Putting parentheses around a note inside a chord

Vertical brace spanning several lyrics lines

This example shows a trick to insert a vertical brace when going from several stanzas into a common ending in the lyrics. (An alternative is of course to just skip the brace, especially if you add a line break instead).

Vertical brace spanning several lyrics lines

Coloring objects

LilyPond gives you the ability to assign different colors to any grob in your score, such as NoteHeads, Alterations, Beams and so on, by simply overriding the #'color property and choosing your color (as explained in the Notation Reference, it is possible to obtain about any color).

Coloring objects

Adding drum parts

Using the powerful pre-configured tools such as the \drummode function and the DrumStaff context, inputting drum parts is quite easy: drums are placed at their own staff positions (with a special clef symbol) and have note heads according to the drum. Attaching an extra symbol to the drum or restricting the number of lines is possible.

Adding drum parts

The \fill-line command

The \fill-line command aligns and justifies markup text by setting as many columns as required, in a given space.



In this snippet we use numbers to (beautifully) show how the command works; but when using text beware to use quotes if you want your words to stay together:



\fill-line {The quick brown fox}

results in something like:

The quick brown fox

\fill-line {"The quick brown fox"}

results in something like:

The quick brown fox



The \fill-line command

Using the \tweak command to tweak individual grobs

With the \tweak command, every grob can be tuned directly. Here are some examples of available tweaks.

Using the \tweak command to tweak individual grobs

⇦ Previous 11 12 13 14 15 16 17 18 19 20 Next ⇨