The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse by date Contributing Snippet database Browsing items 220−229 out of 940

Clusters

Clusters are a device to denote that a complete range of notes is to be played.

Clusters

Coda ahead of a line of its own

Here the coda is simply engraved as a new score.

Coda ahead of a line of its own

Color Gradient using Postscript

Lilypond has no way of creating color gradients. This markup function duplicates the path markup, converts it to postscript and uses postscript's rectclip to crop the duplicates, then colors each one a step to create a smooth gradient. The variable 'res' defines the resolution of the gradient. A larger number here makes the gradient smoother, but takes longer to compile. Bigger gradients and larger paths will need a larger resolution to look smooth.

It has NOT been tested with relative path commands.

Color Gradient using Postscript

Colored arrow

This snippet demonstrates drawing colored arrows in a score, e.g. for analysis purposes. These arrows have a fixed length and angle. If you prefer arrows that adapt to layout changes, please also have a look at snippet 962.

Colored arrow

Colored arrows (alternative method)

This snippet demonstrates drawing colored arrows in a score, e.g. for analysis purposes. These arrows will adapt to layout changes, because they are made of spanners between (invisible) note heads. If you need arrows with a fixed length and angle, you might prefer Snippet 961.

Colored arrows (alternative method)

Colored background

For analysis purposes, it could be helpful to put a colored background behind some notes.

Colored background

Colored background for markup text

The \whiteout command puts a white background behind a given markup text.

This snippet shows an easy way to do this with any color.

White text on black background can simply be created by \with-color #white \on-color #black

Colored background for markup text

Colored boxes around / behind notes

For analysis purposes, it can be useful to mark themes, motifs etc.

This snippet demonstrates some tricks for drawing colored boxes around/behind notes.

It is based on the code of snippet 960: http://lsr.di.unimi.it/LSR/Item?id=960

Colored boxes around / behind notes

Colored notes with black outlines, colors based on note name and alteration

This scheme function can be used to produce colored note heads that have a black outline.

The colors are automatically applied based on a given note's name and also (optionally) its alteration (natural, sharp, flat, double sharp, double flat).

Colored notes with black outlines, colors based on note name and alteration

Coloring elements of notation

Individual objects may be assigned colors. Several pre-defined colors are available; they are exhaustively listed in the Notation Reference.

Coloring elements of notation

⇦ Previous 21 22 23 24 25 26 27 28 29 30 Next ⇨