Next: Key signature, Up: Staff notation
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 }
treble, violin, G, G2alto, Ctenorbass, FfrenchsopranomezzosopranobaritonevarbaritonesubbasspercussiontabBy 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. For
example,
\clef "G_8" c4
The command \clef "treble_8" is equivalent to setting clefGlyph,
clefPosition (which controls the Y position of the clef),
middleCPosition and clefOctavation. A clef is printed
when any of these properties are changed. The following example shows
possibilities when setting properties manually.
{
\set Staff.clefGlyph = #"clefs.F"
\set Staff.clefPosition = #2
c'4
\set Staff.clefGlyph = #"clefs.G"
c'4
\set Staff.clefGlyph = #"clefs.C"
c'4
\set Staff.clefOctavation = #7
c'4
\set Staff.clefOctavation = #0
\set Staff.clefPosition = #0
c'4
\clef "bass"
c'4
\set Staff.middleCPosition = #4
c'4
}
Program reference: Clef.
This page is for LilyPond-2.8.8 (stable-branch).