The LilyPond Snippet Repository ♪♫

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

Tag filter

The \tag command marks music expressions with a name. These tagged expressions can be filtered out later. This mechanism can be used to make different versions of the same music. In this example, the top stave displays the music expression with all tags included. The bottom two staves are filtered: the part has cue notes and fingerings, but the score has not.

Tag filter

Changing the default text font family

The default font families for text can be overridden with make-pango-font-tree.

Changing the default text font family

Ambitus

Ambitus indicate pitch ranges for voices.

Accidentals only show up if they are not part of the key signature. AmbitusNoteHead grobs also have ledger lines.

Ambitus

lyric combine

With the \lyricsto mechanism, individual lyric lines can be associated with one melody line. For each lyric line, they can be tuned whether to follow melismata or not.

lyric combine

Staff line positions

The vertical positions of staff lines may be specified individually, by setting the line-positions property of the StaffSymbol.

Staff line positions

Clip systems

This code shows how to clip (extract) snippets from a full score.

This file needs to be run separately with -dclip-systems; the snippets page may not adequately show the results. The result will be files named base-from-start-to-end[-count].eps.

If system starts and ends are included, they include extents of the System grob, e.g., instrument names.

Grace notes at the end point of the region are not included.

Regions can span multiple systems. In this case, multiple EPS files are generated.

Clip systems

Embedding native PostScript in a \markup block

PostScript code can be directly inserted inside a \markup block.

Embedding native PostScript in a \markup block

Displaying the version number with conditionals (if then) using Scheme

Thanks to its implementation of GUILE, LilyPond makes high level functionalities relatively easy to accomplish. <p>In this example, the title will mention the current version (i.e. the version the snippet was compiled with, regardless which version was originally used).

Displaying the version number with conditionals (if then) using Scheme

Positioning grace notes with floating space

Setting the property 'strict-grace-spacing makes the musical columns for grace notes 'floating', i.e., decoupled from the non-grace notes: first the normal notes are spaced, then the (musical columns of the) graces are put left of the musical columns for the main notes.

Positioning grace notes with floating space

Proportional spacing

Proportional notation can be created by setting proportionalNotationDuration. Notes will be spaced proportional to the distance for the given duration.

Proportional spacing

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