Jump to content

Help:Score

From Wikipedia, the free encyclopedia

The<score>...</score>element in wikitext displays a musical score out of GNULilyPond(the default) orABCmarkup syntax. It also produces aMIDI fileof the music and optionally displays an audio player that plays the music. It is implemented by theScore extensionforMediaWiki,available across Wikipedia languages.

For LilyPond resources, see§ External links.As of August 2021,the extension on Wikipedia is using LilyPond v2.22.0 (checkSpecial:Versionfor the current version). Changes to LilyPond since version 2.18 are documentedhere.Note that LilyPond's full syntax is available when the extension is invoked with the wikitext<scoreraw= "1">.A plain<score>invokes a simplified implementation that is not fully consistent with the LilyPond documentation.

Element attributes[edit]

Attribute Description
lang= "ABC" useABC notation(seestandard documentation;many parts newer than 1.6 are unsupported, so preview often)
lang= "lilypond" use LilyPond notation (default, see#Syntax)
sound= "1" add an audio player beneath the score image to play an automatically-generatedOgg Vorbisaudio file
raw= "1" interpret the markup within thescoretag as a complete LilyPond file, allowing more complex scores
midi= "1" obsoleteThis used to control whether the score image links to an automatically-generatedMIDIfile; clicking the score now always shows a JavaScript pop-up with a link to the MIDI file.
override_midi= "…" deprecatedreplace the automatically-generated MIDI file by the given one
override_audio= "…" deprecatedreplace the automatically-generated audio file by the given one
override_ogg= "…" deprecatedalias foroverride_audio
vorbis= "1" deprecatedalias forsound

If there is a MIDI file or audio file of superior quality to the MIDI or audio generated by the Score extension, you can provide a[[File::]]wikilink to it after the closing</score>tag.

Examples[edit]

Simple[edit]

<score>
{c'd'e'f'g'fis'es'cis'c'2}
</score>

gives


{c' d' e' f' g' fis' es' cis' c'2}

Equivalent in ABC notation:

<scorelang="ABC">
L:1/4
CDEF|G^F_E^C|C2
</score>

More elaborate[edit]

<scoresound="1">
\transposecg\relativec'{% display G for C, etc. and one octave higher
\keyc\minor
\time4/4
c4e8eg4g% (text after the % is just a comment)
<cesg>2<cesg>% angle brackets create chords
es4d(cb)% parentheses create slurs
a4.r8r8a8~a4% r creates rests; ~ creates ties
e--e->e-.g\fermata% accents and other signs
\bar"|."
}
</score>

gives


  \transpose c g \relative c'{
  \key c \minor
  \time 4/4
    c4 e8 e g4 g          % (text after the % is just a comment)
    <c es g>2 <c es g>    % angle brackets create chords
    es4 d( c b)           % parentheses create slurs
    a4. r8 r8 a8 ~ a4     % r creates rests; ~ creates ties
    e-- e-> e-. g\fermata % accents and other signs
    \bar "|."
  }
% This is just a comment line.

Equivalent in ABC (pre-transposed due to differing semantics):

<scorelang="ABC">
K:Gm
M:4/4
L:1/4
G=B/2B/2dd|% a comment
[gbd']2[gbd']2|% square brackets create chords (not supported by abc2ly)
b(ag^e)|% parentheses create slurs
=e3/2z/2z/2c/2-c% z creates rests; - creates ties
!tenuto!=BLB.BHB% see standard section "Decorations" (not supported by abc2ly)
|]
</score>

Syntax[edit]

The score section must be surrounded by<score>...</score>.The notes must be within a set of curly braces{...}.

Comments in the markup start with a percentage sign%and end at the end of the line.

Pitch[edit]

To display a note, type the letter (a b cetc.) Separate each letter with a space. The bare note name refers to the natural note irrespective of key signature (see "setting the key" below). These letters are as in English and Dutch, not as in German and many other continental languages (FYI: continental b means b flat and continental h means b - if you find that confusing, forget it).

Sharps and flats are formed by using the Dutch and German suffixes "is" and "es" respectively. To avoid "ees", the note Eis simply written ases.The simpleaccidentalsare thusais bis cis dis eis fis gisfor the sharps andaes bes ces des es fes gesfor the flats. English language editors may prefer to include the line\language "english"in the script, after whichsfor sharp andffor flat can be used:as bs cs ds es fs gsandaf bf cf df ef ff gf.Double sharps are formed with the suffixisisand double flats witheses,or in English notation withssorxandff.Semi-sharps, -flats and sesqui-sharps and -flats are also supported in both English and German. See:#Accidentals.

By default, each note name refers to the note below middle C. For example,cwould be displayed as

\new Staff \with { \remove "Time_signature_engraver" }{c}

or

\new Staff \with { \remove "Time_signature_engraver" }{\clef bass c}

. Use the apostrophe (') to go up an octave and a comma (,) to go an octave down. Middle C would bec'

\new Staff \with { \remove "Time_signature_engraver" }{ c'}

.

<scorelang="lilypond"sound="1">
{
a,,c,e,a,ceac'% Middle C
e'a'c''e''a''c'''e'''g'''\bar"||"
aes''bes''gis''dis''aeses''beses''gisis''disis''\bar"||"
aeh''beseh''gih''disih''\bar"||"
\language"english"
af''bf''gs''ds''aff''bff''gss''bx''\bar"||"
aqf''btqf''gqs''dtqs''
}
</score>

  {
    a,, c, e, a, c e a c' %Middle C
    e' a' c'' e'' a'' c''' e''' g''' \bar "||"
    aes'' bes'' gis'' dis'' aeses'' beses'' gisis'' disis'' \bar "||"
    aeh'' beseh'' gih'' disih''  \bar "||"
    \language "english"
    af'' bf'' gs'' ds'' aff'' bff'' gss'' bx'' \bar "||"
    aqf'' btqf'' gqs'' dtqs''
  }

A much easier way is to use relative coding. If you include\relativebefore the braces, each note will refer to the note closest to the previous one, and the first one will refer to the note closest to the one mentioned after the\relativetag. ( "Closest" ignores sharps and flats.) Use'to go up an extra octave and,to go down.

<scorelang="lilypond"sound="1">
\relativec'{
ef<ceg>2
a'4(bc)c,
d8ef16gab
c4.a8e'fg,fr\autoBeamOffedc
b4agb->c2.->r4
\bar"|."
}
</score>

 \relative c' {
  e f <c e g>2
  a'4( b c) c,
  d8 e f16 g a b
  c4. a8 e' f g, f r \autoBeamOff e d c
  b4 a g b-> c2.-> r4
  \bar "|."
  }

Setting the key[edit]

By default there is no key signature (no sharps or flats). You can indicate the key with\key g \major,\key c \minor,or even amodesuch as\key c \dorianor\key c \mixolydian.The key can be changed at any point.

Keep in mind that even with a key signature,you must still include sharps (-is) and flats (-es) for each individual note name.If you omit one, it will be considered a natural. For example, this is the key of Gb major:

<scorelang="lilypond"sound="1">
\relativec'{
\keyges\major
\time6/8

% Notes with -es suffixes indicating flats
des8esgesaesbesces

% Notes without accidentals (naturals)
bcdega
}
</score>

 \relative c' {
   \key ges \major
   \time 6/8

% Notes with -es suffixes indicating flats
   des8 es ges aes bes ces

% Notes without accidentals (naturals)
   b c d e g a
  }

Accidentals[edit]

Accidentalsmay be indicated by following the note name with the appropriate text:

double flat three quarter flat half flat half sharp three quarter sharp double sharp
De eses eseh es eh ! ih is isih isis
En ff tqf f qf qs s tqs ss or x

Note that Eis "es" alone, rather than "ees". "q" and "tq" refer to "quarter" and "three-quarter" (rather than "hf" for "half flat" and "thf" for "three-half flat" ), as in "quarter tone".However, the" quarter flat/sharp "is not a quarter of a flat/sharp, but instead half of a flat/sharp, and the" three-quarter flat/sharp "is 1.5 flats not 0.75 flats. Notes outside of the quarter-tone scale are not supported.

German:

<scorelang="lilypond"sound="1">{

\omitScore.TimeSignature
\relativec''{
\time4/4
aeses1aesehaesaeha!aihaisaisihaisis
}}
</score>

English:

<scorelang="lilypond"sound="1">{

\omitScore.TimeSignature
\relativec''{
\time4/4
\language"english"
aff1atqfafaqfa!aqsasatqsass
}}
</score>

Both result in:

 {

\omit Score.TimeSignature
    \relative c'' {
        \time 4/4
\language "english"
        aff1 atqf af aqf a! aqs as atqs ass
    }  }

Transpose and transposition[edit]

If, for some reason, a piece needs to be transposed to a different key, it is possible to do so without having to transcribe it manually. This also affects the key signature. The syntax for this is:

\transposefrompitchtopitchmusicexpr

For example:

<scorelang="lilypond"sound="1">\transposeces{
\relativec'{
\keyc\major\time4/4
c4defgabc
}
}
</score>

Results in:

\transpose c es {
    \relative c' {
        \key c \major \time 4/4
        c4 d e f g a b c
    }  
}

MIDI output can be transpositioned with the\transposition <pitch>command. The French horn (in C) motif from the opening of Schubert'slast symphony,transpositioned one octave down:

<scoresound="1">
\relativec'{\setStaff.midiInstrument=#"french horn"
\setStaff.midiMinimumVolume=#0.7
\setStaff.midiMaximumVolume=#1.0
\tempo"Andante"
\tempo4=80
\transpositionc
\keyc\major
\time2/2
c'2->\pd4e4|a,4.->b8c2|f4.->d8e2|g->d4e|a,4.->b8c2|d4.->e8c2|d2.\ppe4|c1
}
</score>

\relative c' { \set Staff.midiInstrument = #"french horn"
  \set Staff.midiMinimumVolume = #0.7
  \set Staff.midiMaximumVolume = #1.0
  \tempo "Andante"
  \tempo 4 = 80
  \transposition c
  \key c \major
  \time 2/2
  c'2->\p d4 e4 | a,4.-> b8 c2 | f4.-> d8 e2 | g-> d4 e | a,4.-> b8 c2 | d4.-> e8 c2 | d2.\pp e4 | c1
}

The\transpositioncommand is mainly intended for scores that incolve transposing instruments not set in concert pitch.

<scoresound="1">
\newGrandStaff<<
\newStaff="violin"\with{
instrumentName="Vln"
midiInstrument="violin"
}
\relativec''{
% not strictly necessary, but a good reminder
\transpositionc'
\keyc\major
g4(c8)rcrc4
}
\newStaff="clarinet"\with{
instrumentName=\markup{Cl(B\flat)}
midiInstrument="clarinet"
}
\relativec''{
\transpositionbes
\keyd\major
a4(d8)rdrd4
}
>>
</score>

\new GrandStaff <<
  \new Staff = "violin" \with {
    instrumentName = "Vln"
    midiInstrument = "violin"
  }
  \relative c'' {
    % not strictly necessary, but a good reminder
    \transposition c'
    \key c \major
    g4( c8) r c r c4
  }
  \new Staff = "clarinet" \with {
    instrumentName = \markup { Cl (B\flat) }
    midiInstrument = "clarinet"
  }
  \relative c'' {
    \transposition bes
    \key d \major
    a4( d8) r d r d4
  }
>>

Rhythm[edit]

Note duration is indicated by a number following the pitch with no space between (a4 b8). Use the number 1 for a whole note (semibreve), 2 for a half note (minim), 4 for a quarter note (crotchet), 8 for an eighth note (quaver), and so on. If a note does not have an explicit duration, it will either default to a quarter note or use the duration of the note preceding it.

Rests are indicated by using the letterrinstead of a pitch. Dotted notes are formed simply by following the duration number with a period (c4.).

Tupletsare indicated using the\timescommand, for example\times 2/3 {c8 c c}gives a triplet of three eight-notes (quavers).

<scorelang="lilypond"sound="1">
\relativec''{b1b2b4b8cr4b4.r8\times2/3{a8gf}}
</score>

\relative c''{b1 b2 b4 b8 c r4 b4. r8 \times 2/3 {a8 g f}}

Setting the time signature[edit]

The defaulttime signatureis 4/4. To set another time signature, one may use the\timecommand. For example to set the time signature to cut-time one would use\time 2/2and waltz time would be\time 3/4.The time signature may be changed at almost any point.

Removing the time signature[edit]

For some music examples, removing the time signature may be desirable; the code\remove "Time_signature_engraver"can be used in that case:

<score>
{
\newStaff\with{\remove"Time_signature_engraver"}
<d'fis'a'>2
}
</score>
{ \new Staff \with { \remove "Time_signature_engraver" } <d' fis' a'>2 }

Pick up measure[edit]

The code\partial 4will create a pickup measure (anacrusis) of one quarter note,\partial 4*2would create a pickup measure of two quarter notes, etc. See an example in the Adding Lyrics section of this article.

Customizing beams[edit]


\relative c'' {
   \time 3/4
   r4. g8 a8 b8
}

The software occasionally combines beamed notes in places that are not desired or look awkward. To override the automatic beams, use\noBeambetween the notes that would otherwise be beamed:g a b \noBeam g.To turn off beaming for many notes, use\autoBeamOffand then\autoBeamOn.

<score>
\relativec''{
\time3/4
r4.g8\noBeama8b8
}
</score>

\relative c'' {
   \time 3/4
   r4. g8 \noBeam a8 b8
}

To manually beam notes, use square brackets inserting the first one after the first note to be beamed:a8 b[ c d e] f.This would beam the notes b, c, d, and e, but leave the first and last notes without beams.

 \relative c''{a8 b[ c d e] f}

Adding lyrics[edit]

You can add lyrics to the score using\addlyrics.See theLilyPond Manualfor more information about how to align the lyrics to the score.

<scoreraw="1"lang="lilypond">
\header{
tagline=""% no footer
title="Good Morning"
composer="trad."
}
\relativeg'{
\keyg\major\time3/4
\partial4d
edg
fis2d4
eda'
g2d4
d'bg
fisec'
bga
g2\fermata
\bar"|."
}
\addlyrics{
Goodmor--ningtoyou,
Goodmor--ningtoyou,
Goodmor--ningdearchil--dren,
Goodmor--ningtoall.
}
</score>

  \header {
    tagline = "" % no footer
    title = "Good Morning"
    composer = "trad."
  }
  \relative g' {
    \key g \major \time 3/4
    \partial 4 d
     e d g
     fis2 d4
     e d a'
     g2 d4
     d' b g
     fis e c'
     b g a
     g2 \fermata
     \bar "|."
   }
   \addlyrics {
     Good mor -- ning to you,
     Good mor -- ning to you,
     Good mor -- ning dear chil -- dren,
     Good mor -- ning to all.
   }

Adding chord names[edit]

Chord names can be added as a separate ChordNames staff as follows:

<scorelang="lilypond"sound="1">
<<
\newChordNames\chordmode{
\setchordChanges=##t% Only display chord when there is a change (e.g., don't repeat the Am here)
a4:ma4:m|% measure 1 - A7 would be a:7
g2|% measure 2
}
\newStaff\relativec''{
\keya\dorian
\time2/4
a8a16aa8a16a|% measure 1
b8ag4|% measure 2
}
>>
</score>

<<
\new ChordNames \chordmode {
  \set chordChanges = ##t
  a4:m a4:m         |% measure 1
  g2                |% measure 2
}
\new Staff \relative c''{
  \key a \dorian
  \time 2/4
  a8 a16 a a8 a16 a |% measure 1
  b8 a g4           |% measure 2
}
>>

The letterscan be used in the ChordNames staff in place ofr(the code for a rest) when there is no chord.

Anrwill result in an explicit "No Chord" notation

<<\new ChordNames \chordmode {r2} \new Staff \with { \remove "Time_signature_engraver" } \relative c''{c}>>

whereas theswill result in correct spacing, but no chord name notation will appear.

Adding whitespace[edit]

The lettersfollowed by a note duration adds an appropriate amount of whitespace:

Withs4ands1 Without whitespace

\new GrandStaff <<
 \time 5/4
 \new Staff \with { \remove "Time_signature_engraver" \magnifyStaff 1.5 } { s4 c'1 }
 \new Staff \with { \remove "Time_signature_engraver" \magnifyStaff 1.5 \clef bass } { s4 s1 } >>

\new GrandStaff <<
 \new Staff \with { \remove "Time_signature_engraver" \magnifyStaff 1.5 } { c'1 }
 \new Staff \with { \remove "Time_signature_engraver" \magnifyStaff 1.5 \clef bass } { } >>
Middle C centrally placed on a grand staff

Accents and other symbols[edit]

There are a number of symbols to attach to notes, such as\fermata.There are also{e-> f-- g-+ a-. b-^ c-_ d-!}

<score>
\relativec'{
e->f--g-+a-.
b-^c-_d-!e\fermata
}
</score>

producing


  \relative c' {
  e-> f-- g-+ a-.
  b-^ c-_ d-! e\fermata
  }

Color[edit]

<scorelang="lilypond"sound="1">
{
\omitScore.TimeSignature
\relativec'{
\cleftreble
\time7/4\once\overrideNoteHead.color=#redc4d\once\overrideNoteHead.color=#redef\once\overrideNoteHead.color=#redgab\time2/4c2\bar"||"
\time4/4<c,eg>1\bar"||"
}}
</score>

produces


{
\omit Score.TimeSignature
\relative c' { 
  \clef treble 
  \time 7/4 \once \override NoteHead.color = #red c4 d \once \override NoteHead.color = #red e f \once \override NoteHead.color = #red g a b  \time 2/4 c2 \bar "||"
  \time 4/4 <c, e g>1 \bar "||"
} }

MIDI instruments[edit]

MIDIinstrument sounds can be assigned with\set Staff.midiInstrument = # "instrument"as documented insection A6of LilyPond'sNotation Reference.Trial and error may be necessary: some instruments may not work unless the # is omitted, and some may not work with or without the #.

FromThe Rite of Spring
Markup
<scoresound="1">
\relativec''{\setStaff.midiInstrument=#"bassoon"\cleftreble\numericTimeSignature\time4/4\tempo"Lento"4=50\stemDownc4\fermata(_ "solo ad lib."\grace{b16[(c]}bgeb'\times2/3{a8)\fermata}}
</score>
Renders as
 \relative c'' { \set Staff.midiInstrument = #"bassoon" \clef treble \numericTimeSignature \time 4/4 \tempo "Lento" 4 = 50 \stemDown c4\fermata(_"solo ad lib." \grace { b16[( c] } b g e b' \times 2/3 { a8)\fermata } }
Markup
<scoresound="1">
{\newPianoStaff<<\newStaff\relativec''{\setStaff.midiInstrument=#"violin"\cleftreble\tempo8=126\time3/16r16<dcafisd>\f-!r16\fermata|\time2/16r<dcafisd>-!\time3/16r<dcafisd>8-!|r16<dcafisd>8-!|\time2/8<dcafis>16-!<ecbesg>->-![<cisbaesf>-!<cafisees>-!]}\newStaff\relativec{\setStaff.midiInstrument=#"violin"\clefbass\time3/16d,16-!<bes''ees,>-!r\fermata|\time2/16<d,,d,>-!<bes''ees,>-!|\time3/16d16-!<eescis>8-!|r16<eescis>8-!|\time2/8d16\sf-!<eescis>-!->[<dc>-!<dc>-!]}>>}
</score>
Renders as
 { \new PianoStaff << \new Staff \relative c'' { \set Staff.midiInstrument = #"violin" \clef treble \tempo 8 = 126 \override DynamicLineSpanner.staff-padding = #4 \time 3/16 r16 <d c a fis d>-! r16\fermata | \time 2/16 r <d c a fis d>-! \time 3/16 r <d c a fis d>8-! | r16 <d c a fis d>8-! | \time 2/8 <d c a fis>16-! <e c bes g>->-![ <cis b aes f>-! <c a fis ees>-!] } \new Staff \relative c { \set Staff.midiInstrument = #"cello" \clef bass \time 3/16 d,16-! <bes'' ees,>^\f-! r\fermata | \time 2/16 <d,, d,>-! <bes'' ees,>-! | \time 3/16 d16-! <ees cis>8-! | r16 <ees cis>8-! | \time 2/8 d16^\sf-! <ees cis>-!->[ <d c>-! <d c>-!] } >> }

Repeated sections and MIDI[edit]

To indicate a repeated section, prefix it with\repeat volta 2.The MIDI and audio will only play once unless you add\unfoldRepeats,which will also "unfold" the score. To avoid this you must duplicate the score, once for layout and once for MIDI, for example:

Markup
<scoreraw="1"sound="1">
\header{tagline=""}
\score{
\relativec'\repeatvolta2{cdef}
\layout{}
}
\score{% "unfold" this score copy so MIDI plays the repeated section twice
\unfoldRepeats{
\relativec'\repeatvolta2{cdef}
}
\midi{}
}
</score>
Renders as

\header { tagline = "" }
\score {
  \relative c' \repeat volta 2 {c d e f}
  \layout { }
}
\score { % "unfold" this score copy so MIDI plays the repeated section twice
  \unfoldRepeats {
    \relative c' \repeat volta 2 {c d e f}
  }
  \midi { }
}

Hiding tempo[edit]

Metronome marks, as shown above, may be hidden with\set Score.tempoHideNote = ##t.

FromSt Matthew Passion
Markup
<scoresound="1">
{\newChoirStaff<<
\newStaff<<
\newVoice\relativec''{\setScore.tempoHideNote=##t\tempo8=120\stemUp\cleftreble\keyfis\minor\time3/8s4.|<gis'dis>8^.^(<gisdis>^.<gisdis>^.)|s4.|<fiscis>8^.^(<fiscis>^.<fiscis>^.)|s4.|fis16^(eisdiscis)<b'gis>8^.|<afis>^.rr|s4}
\newVoice\relativec''{\stemDowncis8[d]cis|bis4.|b!32_([cisd16cis8)]b|ais4.|b8a![_(gis)]|afis[_(eis)]|fis\grace{e(}d4)|cis}\addlyrics{Buß-undReu,Buß4und8Reu–knirschtdasSün-den-herzent-zwei}
\newStaff\relativec{\clefbass\keyfis\minor\time3/8fis4.~_ "Bar 13"|fis8gis16(fiseisdis)|eis4.|e!8fis16(edcis)|d8(cisb)|cis4.~|cis8b16(agisfis)|eis^ "173 bars"}
>>>>}
</score>
Renders as

{ \new ChoirStaff <<
  \new Staff << 
    \new Voice \relative c'' { \set Score.tempoHideNote = ##t \tempo 8 = 120 \stemUp \clef treble \key fis \minor \time 3/8 s4. | <gis' dis>8^.^( <gis dis>^. <gis dis>^.) | s4. | <fis cis>8^.^( <fis cis>^. <fis cis>^.) | s4. | fis16^( eis dis cis) <b' gis>8^. | <a fis>^. r r | s4 } 
    \new Voice \relative c'' { \stemDown cis8[ d] cis | bis4. | b!32_([ cis d16 cis8)] b | ais4. | b8 a![_( gis)] | a fis[_( eis)] | fis \grace { e(} d4) | cis } \addlyrics { Buß - und Reu,– Buß4 und8 Reu– knirscht das Sün- den- herz ent- zwei }
  \new Staff \relative c { \clef bass \key fis \minor \time 3/8 fis4.~_"Bar 13" | fis8 gis16( fis eis dis) | eis4. | e!8 fis16( e d cis) | d8( cis b) | cis4.~ | cis8 b16( a gis fis) | eis ^"173 bars"}
   >> >> }

Individual staff sizes[edit]

Individual staff sizes can be changed with\with{ \magnifyStaff #nn }.Using\with{ \magnifyStaff #2/3 }after each instance of\new Staff,the example above renders as:


{\new ChoirStaff <<
  \new Staff \with{ \magnifyStaff #2/3 } << 
    \new Voice \relative c'' { \set Score.tempoHideNote = ##t \tempo 8 = 120 \stemUp \clef treble \key fis \minor \time 3/8 s4. | <gis' dis>8^.^( <gis dis>^. <gis dis>^.) | s4. | <fis cis>8^.^( <fis cis>^. <fis cis>^.) | s4. | fis16^( eis dis cis) <b' gis>8^. | <a fis>^. r r | s4 } 
    \new Voice \relative c'' { \stemDown cis8[ d] cis | bis4. | b!32_([ cis d16 cis8)] b | ais4. | b8 a![_( gis)] | a fis[_( eis)] | fis \grace { e(} d4) | cis } \addlyrics { Buß - und Reu,– Buß4 und8 Reu– knirscht das Sün- den- herz ent- zwei }
  \new Staff \with{ \magnifyStaff #2/3 } \relative c { \clef bass \key fis \minor \time 3/8 fis4.~_"Bar 13" | fis8 gis16( fis eis dis) | eis4. | e!8 fis16( e d cis) | d8( cis b) | cis4.~ | cis8 b16( a gis fis) | eis ^"173 bars"}
   >> >> }

For more intricate details, see"Setting the staff size"in the LilyPond manual.

Image frame[edit]

Alignment[edit]


    \relative c' {
        \clef treble \time 7/4 \hide Staff.TimeSignature
        c4 d e f g a b c2
    }
Diatonic scale on C, a "white note" scale

Use{{Image frame}}to align scores to the left, center, or right.

For example:

{{Imageframe
|content=<score>
\relativec'{
\cleftreble\time7/4\hideStaff.TimeSignature
c4defgabc2
}
</score>
|width=|caption=DiatonicscaleonC,a"whitenote "scale
}}

results in the image to the right.

Grouping[edit]


{
\omit Score.TimeSignature
\relative c' { 
  \clef treble \time 4/4
  e4^\markup { Enharmonic genus } feh geses a b ceh deses e

} }

{
\omit Score.TimeSignature
\relative c' { 
  \clef treble \time 4/4
  e4^\markup { Chromatic genus } f ges a b c des e

} }

{
\omit Score.TimeSignature
\relative c' { 
  \clef treble \time 4/4
  e4^\markup { Diatonic genus } f g a b c d e
} }
The three genera of the Dorianoctave specieson E

{{Image frame}}may also be used to group score images together. The text below creates the group of images to the right:

{{Imageframe|content=<score>
{
\omitScore.TimeSignature
\relativec'{
\cleftreble\time4/4
e4^\markup{Enharmonicgenus}fehgesesabcehdesese

}}
</score>

<score>
{
\omitScore.TimeSignature
\relativec'{
\cleftreble\time4/4
e4^\markup{Chromaticgenus}fgesabcdese

}}
</score>

<score>
{
\omitScore.TimeSignature
\relativec'{
\cleftreble\time4/4
e4^\markup{Diatonicgenus}fgabcde
}}
</score>|width=300|caption=ThethreegeneraoftheDorian[[octavespecies]]onE}}

See also[edit]

External links[edit]

References[edit]