The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse by date Contributing Snippet database Browsing items 210−219 out of 949

Chords with one normal note head and multiple small note heads

I have encountered music in the wild where the primary voice is joined by a bunch of sub-voices. In this particular instance, this is notated as a set of chords, where the note head of the primary voice is in a normal font, but the note heads for the other voices are in a smaller font.

My solution is to make a scheme music function which modifies all chords that it is given such that the first pitch specified in the chord uses the normal font, and all other pitches are tweaked to use a font size two smaller.

Problems: This does not properly resize accidentals attached to the smaller note heads.

Chords with one normal note head and multiple small note heads

Chords with stretched fingering for FretBoards and TabVoice

Sometimes chords with a stretched fingering are required. If not otherwise specified the context-property maximumFretStretch is set to 4, though. Resulting in a warning about "No string for pitch ..." and the note is omitted. You may set maximumFretStretch to an approppriate value or explecitely assign string-numbers to all notes of a chord.

Chords with stretched fingering for FretBoards and TabVoice

Circle of Fifths

There is no problem, just a solution ;-)

This is just a gimmick: a circle of fifths drawn with Lilypond.

Usage:

\QuiZi

or if you want to change size and position:

\markup \move-and-scale \QuiZi #0.8 #40

Circle of Fifths

Circled numbers for live electronics

When dealing with live electronics notation, it's common to use circled numbers (with or without a description of the electronic effect) at the cue places. This type of notation is particularly common in pieces in which the instrumentalist uses a MIDI footpedal to activate events, though might be used in a wider context.

Circled numbers for live electronics

Circled pattern markup

Syntax is \markup\circled-pattern #'radius #'angle #'repeat 'sign (or letter, or glyph)

Circled pattern markup

Clarinet fingering chart and tablatures

[Note that recent LilyPond versions come with built-in woodwind diagram support.]

This snippet defines a new \clarTab markup command to draw tablatures for the clarinet.

The syntax is

\clarTab twelfthKey? holes keysByFinger

with

Here is a list of all strings for '(fingerName . noteName) pairs accepted (note that all altered notes are defined with a sharp):

To see all keys unpressed, specify a dummy value for the noteName, like in 13:

\clarTab ##t #'() #'(("Rlittle" . "") ("Llittle" . "")
                     ("Rfore" . "")("Lfore" . "")
                     ("Rring" . "")("Lring" . ""))

Eventually, you can specify the size of the clarinet tablature by writing at the begining of the .ly file:

clarTabScale = #x

By default x=1. Specifying other values multiplies the size by x.

Example: clarTabScale = #1.5

Clarinet fingering chart and tablatures

Clef change at the beginning of a piece

When changing the clef at the beginning of the first measure, Lilypond just changes the clef for the staff. This is how to keep the staff clef and add an extra clef after the time signature and before the first note.

Clef change at the beginning of a piece

Clef change at the beginning of a piece (alternative)

When changing the clef at the beginning of the first measure, Lilypond just changes the clef for the staff. This is how to keep the staff clef and add an extra clef after the time signature and before the first note.

Clef change at the beginning of a piece (alternative)

Clef, key and time signature in square brackets

For critical editions, objects like clefs, key or time signatures sometimes need to be written in parentheses to indicate they are missing from the autograph. This can be achieved by simply wrapping the bracketify-stencil function around the object's stencil function. By using \once \override, the effect can be applied to just one clef/key/time signature; by using \override it applies to the whole piece.

Clef, key and time signature in square brackets

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

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