The LilyPond Snippet Repository ♪♫

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

Displaying bar lines on lyrics

You can move Bar_engraver and Span_bar_engraver to a different engraving context, if you want, for example, bar lines on lyrics.

Displaying bar lines on lyrics

Flute slap notation

It is possible to indicate special articulation techniques such as a flute tongue slap by replacing the note head with the appropriate glyph. For that we can draw the accent-like note head with \markup.

Flute slap notation

Beam grouping with non-standard time signatures

There are no default automatic beam groupings specified for a number of non-standard time signatures, including 2/8, 7/8 and 10/8. If automatic beams are required the grouping must be specified using <code>beatStructure</code>. This example groups beams in 7/8 time in the pattern 2-3-2.

Beam grouping with non-standard time signatures

Adding articulation marks using Scheme (simple)

Using make-music, you can add various stuff to notes. In this example staccato dots are added to the notes. For this simple case, it is not necessary to use scm constructs.

Adding articulation marks using Scheme (simple)

Adding extra fingering with Scheme

You can add additional elements to notes using map-some-music. In this example, an extra script is attached to a note.

In general, first do a \displayMusic of the music you want to create, then write a function that will work on the appropriate parts of the music for you.

Adding extra fingering with Scheme

Automatic click track

Here is a simple function to automatically add a MIDI click track to any music expression, without altering the graphical output.

Automatic click track

Ancient accidentals

Accidentals are available in different ancient styles, which all are collected here.

Ancient accidentals

Clefs

The clef indicates which lines of the staff correspond to which pitches. The clef is set with the \clef command:

         { c''2 \clef alto g'2 }

Supported clefs include:

treble, violin, G, G2
G clef on 2nd line

alto, C
C clef on 3rd line

tenor
C clef on 4th line.

bass, F
F clef on 4th line

french
G clef on 1st line, so-called French violin clef

soprano
C clef on 1st line

mezzosoprano
C clef on 2nd line

baritone
C clef on 5th line

varbaritone
F clef on 3rd line

subbass
F clef on 5th line

percussion
percussion clef

tab
tablature clef

By adding _8 or ^8 to the clef name, the clef is transposed one octave down or up, respectively, and _15 and ^15 transposes by two octaves. The argument clefname must be enclosed in quotes when it contains underscores or digits. See the last two bars for an example.

Clefs

Adding fingerings to tablatures

To add fingerings to tablatures, use a combination of \markup and \finger.

Adding fingerings to tablatures

Creating slurs across voices

In some situations, it may be necessary to create slurs between notes from different voices. The solution is to add invisible notes to one of the voices, using \hideNotes.

This example is measure 235 of the Ciaconna from Bach's 2nd Partita for solo violin, BWV 1004.

Creating slurs across voices

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