Jump to content

Clefs

From LilyPond wiki

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.

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=173

{ 
  g'2 \clef alto g'2 
  \clef tenor g'2 \clef bass g'2
  \clef french g'2 \clef soprano g'2
  \clef mezzosoprano g'2 \clef baritone g'2
  \clef varbaritone g'2 \clef subbass g'2
  \clef percussion g'2 \clef tab g'2
  
% TO TRANSPOSE THE CLEF ONE OCTAVE UP OR DOWN SEE THE FOLLOWING BARS:
  \clef "G_8" c'1 \clef "G^8" c'1
}