<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Help%3AScore</id>
	<title>Help:Score - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Help%3AScore"/>
	<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Help:Score&amp;action=history"/>
	<updated>2026-05-15T06:09:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.tachyony.co.uk/w/index.php?title=Help:Score&amp;diff=2400&amp;oldid=prev</id>
		<title>Tachyony: Imported page</title>
		<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Help:Score&amp;diff=2400&amp;oldid=prev"/>
		<updated>2021-12-06T16:00:41Z</updated>

		<summary type="html">&lt;p&gt;Imported page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Wikipedia how-to|H:SCORE}}&amp;lt;!--&lt;br /&gt;
{{ombox|textstyle=color: red; font-weight: bold; font-style: italic;|text=&amp;amp;lt;score&amp;amp;gt; has been turned off since July 2020 because of several security problems with LilyPond.&amp;lt;ref&amp;gt;[[phabricator:T257066]]: &amp;quot;Extension:Score / Lilypond is disabled on all wikis&amp;quot;. 3 July 2020.&amp;lt;/ref&amp;gt; This results in the error message &amp;quot;Musical scores are temporarily disabled&amp;quot; when attempting to include a new example.  See the talk page for more information.}} --&amp;gt;&lt;br /&gt;
The {{tag|score}} element displays a musical score out of GNU [[LilyPond]] (the default) or [[ABC notation|ABC]] markup syntax; see [[mw:Extension:Score|Extension:Score]]. It also produces a [[Help:Media (MIDI)|MIDI file]] of the music and optionally display an audio player that plays the music. This is part of [[MediaWiki]], intended to be installable consistently across Wikipedia languages.&lt;br /&gt;
&lt;br /&gt;
For details on the LilyPond syntax, see its [http://www.lilypond.org/manuals.html notation documentation]. A complete manual is [http://lilypond.org/doc/v2.22/Documentation/notation-big-page.html here in HTML] and [http://lilypond.org/doc/v2.22/Documentation/notation.pdf here as PDF]. {{As of|2021|08}}, the extension on Wikipedia is using LilyPond v2.22.0 (check [[Special:Version]] for the current version). Changes to LilyPond since version 2.18 are documented [http://lilypond.org/doc/v2.20/Documentation/changes/ here].&lt;br /&gt;
&lt;br /&gt;
Importantly, note that the documented LilyPond syntax applies when the extension is invoked with {{tag|score|open|attribs=raw=&amp;quot;1&amp;quot;}}. Calling just {{tag|score|open}} will invoke a simplified implementation that is not fully consistent with the LilyPond documentation.&lt;br /&gt;
&lt;br /&gt;
== Element attributes ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Attribute || Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;lang=&amp;quot;ABC&amp;quot;&amp;lt;/code&amp;gt; || use [[ABC notation]] (see [https://abcnotation.com/wiki/abc:standard:v2.1 standard documentation]; many parts newer than 1.6 are unsupported, so preview often)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;lang=&amp;quot;lilypond&amp;quot;&amp;lt;/code&amp;gt; || use LilyPond notation (default, see [[#Syntax]])&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sound=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; || add an audio player beneath the score image to play an automatically-generated [[Ogg Vorbis]] audio file&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;raw=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; || interpret the markup within the &amp;lt;code&amp;gt;score&amp;lt;/code&amp;gt; tag as a complete LilyPond file, allowing more complex scores&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;midi=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; || &amp;#039;&amp;#039;obsolete&amp;#039;&amp;#039; This used to control whether the score image links to an automatically-generated [[Musical Instrument Digital Interface|MIDI]] file; clicking the score now always shows a JavaScript pop-up with a link to the MIDI file.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;override_midi=&amp;quot;…&amp;quot;&amp;lt;/code&amp;gt; || &amp;#039;&amp;#039;deprecated&amp;#039;&amp;#039; replace the automatically-generated MIDI file by the given one&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;override_audio=&amp;quot;…&amp;quot;&amp;lt;/code&amp;gt; || &amp;#039;&amp;#039;deprecated&amp;#039;&amp;#039; replace the automatically-generated audio file by the given one&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;override_ogg=&amp;quot;…&amp;quot;&amp;lt;/code&amp;gt; || &amp;#039;&amp;#039;deprecated&amp;#039;&amp;#039; alias for &amp;lt;code&amp;gt;override_audio&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;vorbis=&amp;quot;1&amp;quot;&amp;lt;/code&amp;gt; || &amp;#039;&amp;#039;deprecated&amp;#039;&amp;#039; alias for &amp;lt;code&amp;gt;sound&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
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 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[File::]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; wikilink to it after the closing &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;/score&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
===Simple===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lilypond&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
{c&amp;#039; d&amp;#039; e&amp;#039; f&amp;#039; g&amp;#039; fis&amp;#039; es&amp;#039; cis&amp;#039; c&amp;#039;2}&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
gives&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
{c&amp;#039; d&amp;#039; e&amp;#039; f&amp;#039; g&amp;#039; fis&amp;#039; es&amp;#039; cis&amp;#039; c&amp;#039;2}&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
Equivalent in ABC notation:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;score lang=&amp;quot;ABC&amp;quot;&amp;gt;&lt;br /&gt;
L:1/4&lt;br /&gt;
CDEF | G^F_E^C | C2&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== More elaborate ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score sound=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
  \transpose c g \relative c&amp;#039; { % display G for C, etc. and one octave higher&lt;br /&gt;
  \key c \minor&lt;br /&gt;
  \time 4/4&lt;br /&gt;
    c4 e8 e g4 g          % (text after the % is just a comment)&lt;br /&gt;
    &amp;lt;c es g&amp;gt;2 &amp;lt;c es g&amp;gt;    % angle brackets create chords&lt;br /&gt;
    es4 d( c b)         % parentheses create slurs&lt;br /&gt;
    a4. r8 r8 a8 ~ a4     % r creates rests; ~ creates ties&lt;br /&gt;
    e-- e-&amp;gt; e-. g\fermata % accents and other signs&lt;br /&gt;
    \bar &amp;quot;|.&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
gives&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score sound=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
  \transpose c g \relative c&amp;#039;{&lt;br /&gt;
  \key c \minor&lt;br /&gt;
  \time 4/4&lt;br /&gt;
    c4 e8 e g4 g          % (text after the % is just a comment)&lt;br /&gt;
    &amp;lt;c es g&amp;gt;2 &amp;lt;c es g&amp;gt;    % angle brackets create chords&lt;br /&gt;
    es4 d( c b)           % parentheses create slurs&lt;br /&gt;
    a4. r8 r8 a8 ~ a4     % r creates rests; ~ creates ties&lt;br /&gt;
    e-- e-&amp;gt; e-. g\fermata % accents and other signs&lt;br /&gt;
    \bar &amp;quot;|.&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
% This is just a comment line.&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equivalent in ABC (pre-transposed due to differing semantics):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;score lang=&amp;quot;ABC&amp;quot;&amp;gt;&lt;br /&gt;
K: Gm &lt;br /&gt;
M: 4/4&lt;br /&gt;
L: 1/4&lt;br /&gt;
G =B/2B/2 dd |      % a comment&lt;br /&gt;
[gbd&amp;#039;]2 [gbd&amp;#039;]2 |   % square brackets create chords (not supported by abc2ly)&lt;br /&gt;
b (ag^e) |          % parentheses create slurs&lt;br /&gt;
=e3/2 z/2 z/2 c/2-c % z creates rests; - creates ties&lt;br /&gt;
!tenuto!=B LB .B HB % see standard section &amp;quot;Decorations&amp;quot; (not supported by abc2ly)&lt;br /&gt;
|]&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
The score section must be surrounded by {{tag|score}}. The notes must be within a set of curly braces &amp;lt;code&amp;gt;{...}&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Comments in the markup start with a percentage sign &amp;lt;code&amp;gt;%&amp;lt;/code&amp;gt; and end at the end of the line.&lt;br /&gt;
&lt;br /&gt;
=== Pitch ===&lt;br /&gt;
To display a note, type the letter (&amp;lt;code&amp;gt;a b c&amp;lt;/code&amp;gt; etc.) Separate each letter with a space.  The bare note name refers to the natural note irrespective of key signature (see &amp;quot;setting the key&amp;quot; below).&lt;br /&gt;
&lt;br /&gt;
Sharps and flats are formed by using the German suffixes &amp;quot;is&amp;quot; and &amp;quot;es&amp;quot; respectively. To avoid &amp;quot;ees&amp;quot;, the note E{{Music|flat}} is simply written as &amp;lt;code&amp;gt;es&amp;lt;/code&amp;gt;. The simple [[Accidental (music)|accidental]]s are thus &amp;lt;code&amp;gt;ais bis cis dis eis fis gis&amp;lt;/code&amp;gt; for the sharps and &amp;lt;code&amp;gt;aes bes ces des es fes ges&amp;lt;/code&amp;gt; for the flats. English language editors may prefer to include the line &amp;lt;code&amp;gt;\language &amp;quot;english&amp;quot;&amp;lt;/code&amp;gt; in the script, after which &amp;lt;code&amp;gt;s&amp;lt;/code&amp;gt; for sharp and &amp;lt;code&amp;gt;f&amp;lt;/code&amp;gt; for flat can be used: &amp;lt;code&amp;gt;as bs cs ds es fs gs&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;af bf cf df ef ff gf&amp;lt;/code&amp;gt;. Double sharps are formed with the suffix &amp;lt;code&amp;gt;isis&amp;lt;/code&amp;gt; and double flats with &amp;lt;code&amp;gt;eses&amp;lt;/code&amp;gt;, or in English notation with &amp;lt;code&amp;gt;ss&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;ff&amp;lt;/code&amp;gt;.  Semi-sharps, -flats and sesqui-sharps and -flats are also supported in both English and German. See: [[#Accidentals]].&lt;br /&gt;
&lt;br /&gt;
By default, each note name refers to the note below middle C. For example, &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;c&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; would be displayed as &amp;lt;score&amp;gt;\new Staff \with { \remove &amp;quot;Time_signature_engraver&amp;quot; }{c}&amp;lt;/score&amp;gt; or &amp;lt;score&amp;gt;\new Staff \with { \remove &amp;quot;Time_signature_engraver&amp;quot; }{\clef bass c}&amp;lt;/score&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Use the apostrophe (&amp;lt;code&amp;gt;&amp;#039;&amp;lt;/code&amp;gt;) to go up an octave and a comma (&amp;lt;code&amp;gt;,&amp;lt;/code&amp;gt;) to go an octave down. Middle C would be &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;c&amp;#039;&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; &amp;lt;score&amp;gt;\new Staff \with { \remove &amp;quot;Time_signature_engraver&amp;quot; }{ c&amp;#039;}&amp;lt;/score&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
  {&lt;br /&gt;
    a,, c, e, a, c e a c&amp;#039; % Middle C&lt;br /&gt;
    e&amp;#039; a&amp;#039; c&amp;#039;&amp;#039; e&amp;#039;&amp;#039; a&amp;#039;&amp;#039; c&amp;#039;&amp;#039;&amp;#039; e&amp;#039;&amp;#039;&amp;#039; g&amp;#039;&amp;#039;&amp;#039; \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    aes&amp;#039;&amp;#039; bes&amp;#039;&amp;#039; gis&amp;#039;&amp;#039; dis&amp;#039;&amp;#039; aeses&amp;#039;&amp;#039; beses&amp;#039;&amp;#039; gisis&amp;#039;&amp;#039; disis&amp;#039;&amp;#039; \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    aeh&amp;#039;&amp;#039; beseh&amp;#039;&amp;#039; gih&amp;#039;&amp;#039; disih&amp;#039;&amp;#039;  \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    \language &amp;quot;english&amp;quot;&lt;br /&gt;
    af&amp;#039;&amp;#039; bf&amp;#039;&amp;#039; gs&amp;#039;&amp;#039; ds&amp;#039;&amp;#039; aff&amp;#039;&amp;#039; bff&amp;#039;&amp;#039; gss&amp;#039;&amp;#039; bx&amp;#039;&amp;#039; \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    aqf&amp;#039;&amp;#039; btqf&amp;#039;&amp;#039; gqs&amp;#039;&amp;#039; dtqs&amp;#039;&amp;#039;&lt;br /&gt;
  }&lt;br /&gt;
 &amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
  {&lt;br /&gt;
    a,, c, e, a, c e a c&amp;#039; %Middle C&lt;br /&gt;
    e&amp;#039; a&amp;#039; c&amp;#039;&amp;#039; e&amp;#039;&amp;#039; a&amp;#039;&amp;#039; c&amp;#039;&amp;#039;&amp;#039; e&amp;#039;&amp;#039;&amp;#039; g&amp;#039;&amp;#039;&amp;#039; \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    aes&amp;#039;&amp;#039; bes&amp;#039;&amp;#039; gis&amp;#039;&amp;#039; dis&amp;#039;&amp;#039; aeses&amp;#039;&amp;#039; beses&amp;#039;&amp;#039; gisis&amp;#039;&amp;#039; disis&amp;#039;&amp;#039; \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    aeh&amp;#039;&amp;#039; beseh&amp;#039;&amp;#039; gih&amp;#039;&amp;#039; disih&amp;#039;&amp;#039;  \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    \language &amp;quot;english&amp;quot;&lt;br /&gt;
    af&amp;#039;&amp;#039; bf&amp;#039;&amp;#039; gs&amp;#039;&amp;#039; ds&amp;#039;&amp;#039; aff&amp;#039;&amp;#039; bff&amp;#039;&amp;#039; gss&amp;#039;&amp;#039; bx&amp;#039;&amp;#039; \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    aqf&amp;#039;&amp;#039; btqf&amp;#039;&amp;#039; gqs&amp;#039;&amp;#039; dtqs&amp;#039;&amp;#039;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A much easier way is to use relative coding. If you include &amp;lt;code&amp;gt;\relative&amp;lt;/code&amp;gt; before 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 &amp;lt;code&amp;gt;\relative&amp;lt;/code&amp;gt; tag. (&amp;quot;Closest&amp;quot; ignores sharps and flats.) Use &amp;lt;code&amp;gt;&amp;#039;&amp;lt;/code&amp;gt; to go up an extra octave and &amp;lt;code&amp;gt;,&amp;lt;/code&amp;gt; to go down.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
 \relative c&amp;#039; {&lt;br /&gt;
  e f &amp;lt;c e g&amp;gt;2&lt;br /&gt;
  a&amp;#039;4( b c) c,&lt;br /&gt;
  d8 e f16 g a b&lt;br /&gt;
  c4. a8 e&amp;#039; f g, f r \autoBeamOff e d c&lt;br /&gt;
  b4 a g b-&amp;gt; c2.-&amp;gt; r4&lt;br /&gt;
  \bar &amp;quot;|.&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
 &amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
 \relative c&amp;#039; {&lt;br /&gt;
  e f &amp;lt;c e g&amp;gt;2&lt;br /&gt;
  a&amp;#039;4( b c) c,&lt;br /&gt;
  d8 e f16 g a b&lt;br /&gt;
  c4. a8 e&amp;#039; f g, f r \autoBeamOff e d c&lt;br /&gt;
  b4 a g b-&amp;gt; c2.-&amp;gt; r4&lt;br /&gt;
  \bar &amp;quot;|.&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
 &amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Setting the key ====&lt;br /&gt;
{{Anchor|Key|Keys|Key signature|Key signatures}}&lt;br /&gt;
By default there is no key signature (no sharps or flats). You can indicate the key with &amp;lt;code&amp;gt;\key g \major&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;\key c \minor&amp;lt;/code&amp;gt;, or even a [[mode (music)|mode]] such as &amp;lt;code&amp;gt;\key c \[[Dorian mode|dorian]]&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;\key c \[[Mixolydian mode|mixolydian]]&amp;lt;/code&amp;gt;. The key can be changed at any point.&lt;br /&gt;
&lt;br /&gt;
Keep in mind that even with a key signature, &amp;#039;&amp;#039;you must still include sharps (-is) and flats (-es) for each individual note name&amp;#039;&amp;#039;. If you omit one, it will be considered a natural. For example, this is the key of C# major:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
 \relative c&amp;#039; {&lt;br /&gt;
   \key cis \major&lt;br /&gt;
   \time 6/8&lt;br /&gt;
&lt;br /&gt;
% Notes with -is suffixes indicating sharps&lt;br /&gt;
   cis8 dis eis fis gis ais&lt;br /&gt;
&lt;br /&gt;
% Notes without accidentals (naturals)&lt;br /&gt;
   b c d e f g&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
 \relative c&amp;#039; {&lt;br /&gt;
   \key cis \major&lt;br /&gt;
   \time 6/8&lt;br /&gt;
% Notes with -is suffixes indicating sharps&lt;br /&gt;
   cis8 dis eis fis gis ais&lt;br /&gt;
% Notes without accidentals (naturals)&lt;br /&gt;
   b c d e f g&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Accidentals ====&lt;br /&gt;
{{anchor|Quarter tones|Quarter tone|Sharps|Sharp|Flats|Flat}}&lt;br /&gt;
&lt;br /&gt;
[[Accidental (music)|Accidentals]] may be indicated by following the note name with the appropriate text:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!&lt;br /&gt;
! {{music|bb}}&lt;br /&gt;
! {{music|db}}&lt;br /&gt;
! {{music|b}}&lt;br /&gt;
! {{music|d}}&lt;br /&gt;
! {{music|natural}}&lt;br /&gt;
! {{music|t}}&lt;br /&gt;
! {{music|#}}&lt;br /&gt;
! {{music|#t}}&lt;br /&gt;
! {{music|x}}&lt;br /&gt;
|-&lt;br /&gt;
! De&lt;br /&gt;
| eses&lt;br /&gt;
| eseh&lt;br /&gt;
| es&lt;br /&gt;
| eh&lt;br /&gt;
| rowspan=2 | !&lt;br /&gt;
| ih&lt;br /&gt;
| is&lt;br /&gt;
| isih&lt;br /&gt;
| isis&lt;br /&gt;
|-&lt;br /&gt;
! En&lt;br /&gt;
| ff&lt;br /&gt;
| tqf&lt;br /&gt;
| f&lt;br /&gt;
| qf&lt;br /&gt;
| qs&lt;br /&gt;
| s&lt;br /&gt;
| tqs&lt;br /&gt;
| ss or x&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that E{{music|b}} is &amp;quot;es&amp;quot; alone, rather than &amp;quot;ees&amp;quot;. &amp;quot;q&amp;quot; and &amp;quot;tq&amp;quot; refer to &amp;quot;quarter&amp;quot; and &amp;quot;three-quarter&amp;quot; (rather than &amp;quot;hf&amp;quot; for &amp;quot;half flat&amp;quot; and &amp;quot;thf&amp;quot; for &amp;quot;three-half flat&amp;quot;), as in &amp;quot;[[quarter tone]]&amp;quot;. However, the &amp;quot;quarter flat/sharp&amp;quot; is not a quarter of a flat/sharp, but instead half of a flat/sharp, and the &amp;quot;three-quarter flat/sharp&amp;quot; is 1.5 flats not 0.75 flats. Notes outside of the quarter-tone scale are not supported.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;German:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt; {&lt;br /&gt;
&lt;br /&gt;
\override Score.TimeSignature&lt;br /&gt;
#&amp;#039;stencil = ##f&lt;br /&gt;
    \relative c&amp;#039;&amp;#039; {&lt;br /&gt;
        \time 4/4&lt;br /&gt;
        aeses1 aeseh aes aeh a! aih ais aisih aisis&lt;br /&gt;
    }  }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;English:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt; {&lt;br /&gt;
&lt;br /&gt;
\override Score.TimeSignature&lt;br /&gt;
#&amp;#039;stencil = ##f&lt;br /&gt;
    \relative c&amp;#039;&amp;#039; {&lt;br /&gt;
        \time 4/4&lt;br /&gt;
\language &amp;quot;english&amp;quot;&lt;br /&gt;
        aff1 atqf af aqf a! aqs as atqs ass&lt;br /&gt;
    }  }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Both result in:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt; {&lt;br /&gt;
&lt;br /&gt;
\override Score.TimeSignature&lt;br /&gt;
#&amp;#039;stencil = ##f&lt;br /&gt;
    \relative c&amp;#039;&amp;#039; {&lt;br /&gt;
        \time 4/4&lt;br /&gt;
\language &amp;quot;english&amp;quot;&lt;br /&gt;
        aff1 atqf af aqf a! aqs as atqs ass&lt;br /&gt;
    }  }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Transposition ====&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
\transpose frompitch topitch musicexpr&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;\transpose c es {&lt;br /&gt;
    \relative c&amp;#039; {&lt;br /&gt;
        \key c \major \time 4/4&lt;br /&gt;
        c4 d e f g a b c&lt;br /&gt;
    }  &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Results in:&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;\transpose c es {&lt;br /&gt;
    \relative c&amp;#039; {&lt;br /&gt;
        \key c \major \time 4/4&lt;br /&gt;
        c4 d e f g a b c&lt;br /&gt;
    }  &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Rhythm ===&lt;br /&gt;
Note duration is indicated by a number following the pitch with no space between (&amp;lt;code&amp;gt;a4 b8&amp;lt;/code&amp;gt;). Use the number 1 for a whole note (breve), 2 for a half note (semibreve), 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.&lt;br /&gt;
&lt;br /&gt;
Rests are indicated by using the letter &amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt; instead of a pitch. Dotted notes are formed simply by following the duration number with a period (&amp;lt;code&amp;gt;c4.&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[Tuplet]]s are indicated using the &amp;lt;code&amp;gt;\times&amp;lt;/code&amp;gt; command, for example &amp;lt;code&amp;gt;\times 2/3 {c8 c c}&amp;lt;/code&amp;gt; gives a triplet of three eight-notes (quavers).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
   \relative c&amp;#039;&amp;#039;{b1 b2 b4 b8 c r4 b4. r8 \times 2/3 {a8 g f}}&lt;br /&gt;
 &amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
\relative c&amp;#039;&amp;#039;{b1 b2 b4 b8 c r4 b4. r8 \times 2/3 {a8 g f}}&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Setting the time signature ====&lt;br /&gt;
The default [[time signature]] is 4/4. To set another time signature, one may use the &amp;lt;code&amp;gt;\time&amp;lt;/code&amp;gt; command. For example to set the time signature to cut-time one would use &amp;lt;code&amp;gt;\time 2/2&amp;lt;/code&amp;gt; and waltz time would be &amp;lt;code&amp;gt;\time 3/4&amp;lt;/code&amp;gt;. The time signature may be changed at almost any point.&lt;br /&gt;
&lt;br /&gt;
==== Removing the time signature ====&lt;br /&gt;
For some music examples, removing the time signature may be desirable; the code &amp;lt;code&amp;gt;\remove &amp;quot;Time_signature_engraver&amp;quot;&amp;lt;/code&amp;gt; can be used in that case:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  \new Staff \with { \remove &amp;quot;Time_signature_engraver&amp;quot; }&lt;br /&gt;
  &amp;lt;d&amp;#039; fis&amp;#039; a&amp;#039;&amp;gt;2&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score&amp;gt;{ \new Staff \with { \remove &amp;quot;Time_signature_engraver&amp;quot; } &amp;lt;d&amp;#039; fis&amp;#039; a&amp;#039;&amp;gt;2 }&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Pick up measure ====&lt;br /&gt;
The code &amp;lt;code&amp;gt;\partial 4&amp;lt;/code&amp;gt; will create a pickup measure ([[anacrusis]]) of one quarter note, &amp;lt;code&amp;gt;\partial 4*2&amp;lt;/code&amp;gt; would create a pickup measure of two quarter notes, etc. See an example in the Adding Lyrics section of this article.&lt;br /&gt;
&lt;br /&gt;
==== Customizing beams ====&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
\relative c&amp;#039;&amp;#039; {&lt;br /&gt;
   \time 3/4&lt;br /&gt;
   r4. g8 a8 b8&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The software occasionally combines beamed notes in places that are not desired or look awkward. To override the automatic beams, use &amp;lt;code&amp;gt;\noBeam&amp;lt;/code&amp;gt; between the notes that would otherwise be beamed: &amp;lt;code&amp;gt;g a b \noBeam g&amp;lt;/code&amp;gt;. To turn off beaming for many notes, use &amp;lt;code&amp;gt;\autoBeamOff&amp;lt;/code&amp;gt; and then &amp;lt;code&amp;gt;\autoBeamOn&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
  \relative c&amp;#039;&amp;#039; {&lt;br /&gt;
     \time 3/4&lt;br /&gt;
     r4. g8 \noBeam a8 b8&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
\relative c&amp;#039;&amp;#039; {&lt;br /&gt;
   \time 3/4&lt;br /&gt;
   r4. g8 \noBeam a8 b8&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To manually beam notes, use square brackets inserting the first one after the first note to be beamed: &amp;lt;code&amp;gt;a8 b[ c d e] f&amp;lt;/code&amp;gt;. This would beam the notes b, c, d, and e, but leave the first and last notes without beams.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score&amp;gt; \relative c&amp;#039;&amp;#039;{a8 b[ c d e] f}&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding lyrics ===&lt;br /&gt;
You can add lyrics to the score using &amp;lt;code&amp;gt;\addlyrics&amp;lt;/code&amp;gt;. See the [http://www.lilypond.org/doc/v2.22/Documentation/learning/aligning-lyrics-to-a-melody LilyPond Manual] for more information about how to align the lyrics to the score.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score raw=&amp;quot;1&amp;quot; lang=&amp;quot;lilypond&amp;quot;&amp;gt;&lt;br /&gt;
  \header {&lt;br /&gt;
    tagline = &amp;quot;&amp;quot; % no footer&lt;br /&gt;
    title = &amp;quot;Good Morning&amp;quot;&lt;br /&gt;
    composer = &amp;quot;trad.&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
  \relative g&amp;#039; {&lt;br /&gt;
    \key g \major \time 3/4&lt;br /&gt;
    \partial 4 d&lt;br /&gt;
     e d g&lt;br /&gt;
     fis2 d4&lt;br /&gt;
     e d a&amp;#039;&lt;br /&gt;
     g2 d4&lt;br /&gt;
     d&amp;#039; b g&lt;br /&gt;
     fis e c&amp;#039;&lt;br /&gt;
     b g a&lt;br /&gt;
     g2 \fermata&lt;br /&gt;
     \bar &amp;quot;|.&amp;quot;&lt;br /&gt;
   }&lt;br /&gt;
   \addlyrics {&lt;br /&gt;
     Good mor -- ning to you,&lt;br /&gt;
     Good mor -- ning to you,&lt;br /&gt;
     Good mor -- ning dear chil -- dren,&lt;br /&gt;
     Good mor -- ning to all.&lt;br /&gt;
   }&lt;br /&gt;
  &amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score raw=&amp;quot;1&amp;quot; lang=&amp;quot;lilypond&amp;quot;&amp;gt;&lt;br /&gt;
  \header {&lt;br /&gt;
    tagline = &amp;quot;&amp;quot; % no footer&lt;br /&gt;
    title = &amp;quot;Good Morning&amp;quot;&lt;br /&gt;
    composer = &amp;quot;trad.&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
  \relative g&amp;#039; {&lt;br /&gt;
    \key g \major \time 3/4&lt;br /&gt;
    \partial 4 d&lt;br /&gt;
     e d g&lt;br /&gt;
     fis2 d4&lt;br /&gt;
     e d a&amp;#039;&lt;br /&gt;
     g2 d4&lt;br /&gt;
     d&amp;#039; b g&lt;br /&gt;
     fis e c&amp;#039;&lt;br /&gt;
     b g a&lt;br /&gt;
     g2 \fermata&lt;br /&gt;
     \bar &amp;quot;|.&amp;quot;&lt;br /&gt;
   }&lt;br /&gt;
   \addlyrics {&lt;br /&gt;
     Good mor -- ning to you,&lt;br /&gt;
     Good mor -- ning to you,&lt;br /&gt;
     Good mor -- ning dear chil -- dren,&lt;br /&gt;
     Good mor -- ning to all.&lt;br /&gt;
   }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding chord names ===&lt;br /&gt;
Chord names can be added as a separate ChordNames staff as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;latex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;&amp;lt;&lt;br /&gt;
  \new ChordNames \chordmode {&lt;br /&gt;
    \set chordChanges = ##t % Only display chord when there is a change (e.g., don&amp;#039;t repeat the Am here)&lt;br /&gt;
    a4:m a4:m         |% measure 1 - A7 would be a:7&lt;br /&gt;
    g2                |% measure 2&lt;br /&gt;
  }&lt;br /&gt;
  \new Staff \relative c&amp;#039;&amp;#039;{&lt;br /&gt;
    \key a \dorian&lt;br /&gt;
    \time 2/4&lt;br /&gt;
    a8 a16 a a8 a16 a |% measure 1&lt;br /&gt;
    b8 a g4           |% measure 2&lt;br /&gt;
  }&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;&amp;lt;&lt;br /&gt;
\new ChordNames \chordmode {&lt;br /&gt;
  \set chordChanges = ##t&lt;br /&gt;
  a4:m a4:m         |% measure 1&lt;br /&gt;
  g2                |% measure 2&lt;br /&gt;
}&lt;br /&gt;
\new Staff \relative c&amp;#039;&amp;#039;{&lt;br /&gt;
  \key a \dorian&lt;br /&gt;
  \time 2/4&lt;br /&gt;
  a8 a16 a a8 a16 a |% measure 1&lt;br /&gt;
  b8 a g4           |% measure 2&lt;br /&gt;
}&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
The letter &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;s&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; can be used in the ChordNames staff in place of &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; (the code for a rest) when there is no chord.&lt;br /&gt;
&lt;br /&gt;
An &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; will result in an explicit &amp;quot;No Chord&amp;quot; notation &amp;lt;score&amp;gt;&amp;lt;&amp;lt;\new ChordNames \chordmode {r2} \new Staff \with { \remove &amp;quot;Time_signature_engraver&amp;quot; } \relative c&amp;#039;&amp;#039;{c}&amp;gt;&amp;gt;&amp;lt;/score&amp;gt;, whereas the &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;s&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; will result in correct spacing, but no chord name notation will appear.&lt;br /&gt;
&lt;br /&gt;
=== Accents and other symbols ===&lt;br /&gt;
There are a number of symbols to attach to notes, such as &amp;lt;code&amp;gt;\fermata&amp;lt;/code&amp;gt;. There are also &amp;lt;code&amp;gt;{e-&amp;gt; f-- g-+ a-. b-^ c-_ d-!}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
  \relative c&amp;#039; {&lt;br /&gt;
  e-&amp;gt; f-- g-+ a-.&lt;br /&gt;
  b-^ c-_ d-! e\fermata&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
producing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
  \relative c&amp;#039; {&lt;br /&gt;
  e-&amp;gt; f-- g-+ a-.&lt;br /&gt;
  b-^ c-_ d-! e\fermata&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Color===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
\override Score.TimeSignature #&amp;#039;stencil = ##f&lt;br /&gt;
\relative c&amp;#039; { &lt;br /&gt;
  \clef treble &lt;br /&gt;
  \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 &amp;quot;||&amp;quot;&lt;br /&gt;
  \time 4/4 &amp;lt;c, e g&amp;gt;1 \bar &amp;quot;||&amp;quot;&lt;br /&gt;
} }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
produces&lt;br /&gt;
&amp;lt;score lang=&amp;quot;lilypond&amp;quot; vorbis=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
\override Score.TimeSignature #&amp;#039;stencil = ##f&lt;br /&gt;
\relative c&amp;#039; { &lt;br /&gt;
  \clef treble &lt;br /&gt;
  \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 &amp;quot;||&amp;quot;&lt;br /&gt;
  \time 4/4 &amp;lt;c, e g&amp;gt;1 \bar &amp;quot;||&amp;quot;&lt;br /&gt;
} }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===MIDI instruments===&lt;br /&gt;
[[MIDI]] instrument sounds can be assigned with &amp;lt;code&amp;gt;\set Staff.midiInstrument = #&amp;quot;&amp;#039;&amp;#039;instrument&amp;#039;&amp;#039;&amp;quot;&amp;lt;/code&amp;gt; as documented in [http://lilypond.org/doc/v2.22/Documentation/notation/midi-instruments section A6] of LilyPond&amp;#039;s &amp;#039;&amp;#039;Notation Reference&amp;#039;&amp;#039;. Trial and error may be necessary: some instruments may not work unless the # is omitted, and some may not work with or without the #.&lt;br /&gt;
{{markupv|title=From &amp;#039;&amp;#039;[[The Rite of Spring]]&amp;#039;&amp;#039;&lt;br /&gt;
|markup=&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score sound=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
\relative c&amp;#039;&amp;#039; { \set Staff.midiInstrument = #&amp;quot;bassoon&amp;quot; \clef treble \numericTimeSignature \time 4/4 \tempo &amp;quot;Lento&amp;quot; 4 = 50 \stemDown c4\fermata(_&amp;quot;solo ad lib.&amp;quot; \grace { b16[( c] } b g e b&amp;#039; \times 2/3 { a8)\fermata } }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|renders=&amp;lt;score sound=&amp;quot;1&amp;quot;&amp;gt; \relative c&amp;#039;&amp;#039; { \set Staff.midiInstrument = #&amp;quot;bassoon&amp;quot; \clef treble \numericTimeSignature \time 4/4 \tempo &amp;quot;Lento&amp;quot; 4 = 50 \stemDown c4\fermata(_&amp;quot;solo ad lib.&amp;quot; \grace { b16[( c] } b g e b&amp;#039; \times 2/3 { a8)\fermata } } &amp;lt;/score&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
{{markupv&lt;br /&gt;
|markup=&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score sound=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
{ \new PianoStaff &amp;lt;&amp;lt; \new Staff \relative c&amp;#039;&amp;#039; { \set Staff.midiInstrument = #&amp;quot;violin&amp;quot; \clef treble \tempo 8 = 126 \time 3/16 r16 &amp;lt;d c a fis d&amp;gt;\f-! r16\fermata | \time 2/16 r &amp;lt;d c a fis d&amp;gt;-! \time 3/16 r &amp;lt;d c a fis d&amp;gt;8-! | r16 &amp;lt;d c a fis d&amp;gt;8-! | \time 2/8 &amp;lt;d c a fis&amp;gt;16-! &amp;lt;e c bes g&amp;gt;-&amp;gt;-![ &amp;lt;cis b aes f&amp;gt;-! &amp;lt;c a fis ees&amp;gt;-!] } \new Staff \relative c { \set Staff.midiInstrument = #&amp;quot;violin&amp;quot; \clef bass \time 3/16 d,16-! &amp;lt;bes&amp;#039;&amp;#039; ees,&amp;gt;-! r\fermata | \time 2/16 &amp;lt;d,, d,&amp;gt;-! &amp;lt;bes&amp;#039;&amp;#039; ees,&amp;gt;-! | \time 3/16 d16-! &amp;lt;ees cis&amp;gt;8-! | r16 &amp;lt;ees cis&amp;gt;8-! | \time 2/8 d16\sf-! &amp;lt;ees cis&amp;gt;-!-&amp;gt;[ &amp;lt;d c&amp;gt;-! &amp;lt;d c&amp;gt;-!] } &amp;gt;&amp;gt; }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|renders=&amp;lt;score sound=&amp;quot;1&amp;quot;&amp;gt; { \new PianoStaff &amp;lt;&amp;lt; \new Staff \relative c&amp;#039;&amp;#039; { \set Staff.midiInstrument = #&amp;quot;violin&amp;quot; \clef treble \tempo 8 = 126 \time 3/16 r16 &amp;lt;d c a fis d&amp;gt;\f-! r16\fermata | \time 2/16 r &amp;lt;d c a fis d&amp;gt;-! \time 3/16 r &amp;lt;d c a fis d&amp;gt;8-! | r16 &amp;lt;d c a fis d&amp;gt;8-! | \time 2/8 &amp;lt;d c a fis&amp;gt;16-! &amp;lt;e c bes g&amp;gt;-&amp;gt;-![ &amp;lt;cis b aes f&amp;gt;-! &amp;lt;c a fis ees&amp;gt;-!] } \new Staff \relative c { \set Staff.midiInstrument = #&amp;quot;violin&amp;quot; \clef bass \time 3/16 d,16-! &amp;lt;bes&amp;#039;&amp;#039; ees,&amp;gt;-! r\fermata | \time 2/16 &amp;lt;d,, d,&amp;gt;-! &amp;lt;bes&amp;#039;&amp;#039; ees,&amp;gt;-! | \time 3/16 d16-! &amp;lt;ees cis&amp;gt;8-! | r16 &amp;lt;ees cis&amp;gt;8-! | \time 2/8 d16\sf-! &amp;lt;ees cis&amp;gt;-!-&amp;gt;[ &amp;lt;d c&amp;gt;-! &amp;lt;d c&amp;gt;-!] } &amp;gt;&amp;gt; } &amp;lt;/score&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Hiding tempo===&lt;br /&gt;
Metronome marks, as shown above, may be hidden with &amp;lt;code&amp;gt;\set Score.tempoHideNote = ##t&amp;lt;/code&amp;gt;.&lt;br /&gt;
{{markupv|title=From &amp;#039;&amp;#039;[[St Matthew Passion]]&amp;#039;&amp;#039;&lt;br /&gt;
|markup=&amp;lt;syntaxhighlight lang=&amp;quot;tex&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;score sound=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
{ \new ChoirStaff &amp;lt;&amp;lt;&lt;br /&gt;
  \new Staff &amp;lt;&amp;lt; &lt;br /&gt;
    \new Voice \relative c&amp;#039;&amp;#039; { \set Score.tempoHideNote = ##t \tempo 8 = 120 \stemUp \clef treble \key fis \minor \time 3/8 s4. | &amp;lt;gis&amp;#039; dis&amp;gt;8^.^( &amp;lt;gis dis&amp;gt;^. &amp;lt;gis dis&amp;gt;^.) | s4. | &amp;lt;fis cis&amp;gt;8^.^( &amp;lt;fis cis&amp;gt;^. &amp;lt;fis cis&amp;gt;^.) | s4. | fis16^( eis dis cis) &amp;lt;b&amp;#039; gis&amp;gt;8^. | &amp;lt;a fis&amp;gt;^. r r | s4 } &lt;br /&gt;
    \new Voice \relative c&amp;#039;&amp;#039; { \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 }&lt;br /&gt;
  \new Staff \relative c { \clef bass \key fis \minor \time 3/8 fis4.~_&amp;quot;Bar 13&amp;quot; | fis8 gis16( fis eis dis) | eis4. | e!8 fis16( e d cis) | d8( cis b) | cis4.~ | cis8 b16( a gis fis) | eis ^&amp;quot;173 bars&amp;quot;}&lt;br /&gt;
   &amp;gt;&amp;gt; &amp;gt;&amp;gt; }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|renders=&amp;lt;score sound=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
{ \new ChoirStaff &amp;lt;&amp;lt;&lt;br /&gt;
  \new Staff &amp;lt;&amp;lt; &lt;br /&gt;
    \new Voice \relative c&amp;#039;&amp;#039; { \set Score.tempoHideNote = ##t \tempo 8 = 120 \stemUp \clef treble \key fis \minor \time 3/8 s4. | &amp;lt;gis&amp;#039; dis&amp;gt;8^.^( &amp;lt;gis dis&amp;gt;^. &amp;lt;gis dis&amp;gt;^.) | s4. | &amp;lt;fis cis&amp;gt;8^.^( &amp;lt;fis cis&amp;gt;^. &amp;lt;fis cis&amp;gt;^.) | s4. | fis16^( eis dis cis) &amp;lt;b&amp;#039; gis&amp;gt;8^. | &amp;lt;a fis&amp;gt;^. r r | s4 } &lt;br /&gt;
    \new Voice \relative c&amp;#039;&amp;#039; { \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 }&lt;br /&gt;
  \new Staff \relative c { \clef bass \key fis \minor \time 3/8 fis4.~_&amp;quot;Bar 13&amp;quot; | fis8 gis16( fis eis dis) | eis4. | e!8 fis16( e d cis) | d8( cis b) | cis4.~ | cis8 b16( a gis fis) | eis ^&amp;quot;173 bars&amp;quot;}&lt;br /&gt;
   &amp;gt;&amp;gt; &amp;gt;&amp;gt; }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Global staff size===&lt;br /&gt;
:&amp;#039;&amp;#039;Note: This feature doesn&amp;#039;t seem to work in Wikimedia&amp;#039;s current configuration.&amp;#039;&amp;#039;&lt;br /&gt;
The default staff size is 20 points. This can be change with &amp;lt;code&amp;gt;#(set-global-staff-size nn)&amp;lt;/code&amp;gt;. Using &amp;lt;code&amp;gt;#(set-global-staff-size 14)&amp;lt;/code&amp;gt;, the example above renders as:&lt;br /&gt;
&amp;lt;score raw=&amp;quot;1&amp;quot; lang=&amp;quot;lilypond&amp;quot;&amp;gt;&lt;br /&gt;
{ #(set-global-staff-size 14) \new ChoirStaff &amp;lt;&amp;lt;&lt;br /&gt;
  \new Staff &amp;lt;&amp;lt; &lt;br /&gt;
    \new Voice \relative c&amp;#039;&amp;#039; { \set Score.tempoHideNote = ##t \tempo 8 = 120 \stemUp \clef treble \key fis \minor \time 3/8 s4. | &amp;lt;gis&amp;#039; dis&amp;gt;8^.^( &amp;lt;gis dis&amp;gt;^. &amp;lt;gis dis&amp;gt;^.) | s4. | &amp;lt;fis cis&amp;gt;8^.^( &amp;lt;fis cis&amp;gt;^. &amp;lt;fis cis&amp;gt;^.) | s4. | fis16^( eis dis cis) &amp;lt;b&amp;#039; gis&amp;gt;8^. | &amp;lt;a fis&amp;gt;^. r r | s4 } &lt;br /&gt;
    \new Voice \relative c&amp;#039;&amp;#039; { \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 }&lt;br /&gt;
  \new Staff \relative c { \clef bass \key fis \minor \time 3/8 fis4.~_&amp;quot;Bar 13&amp;quot; | fis8 gis16( fis eis dis) | eis4. | e!8 fis16( e d cis) | d8( cis b) | cis4.~ | cis8 b16( a gis fis) | eis ^&amp;quot;173 bars&amp;quot;}&lt;br /&gt;
   &amp;gt;&amp;gt; &amp;gt;&amp;gt; }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
For more intricate details, see [http://lilypond.org/doc/v2.22/Documentation/notation/setting-the-staff-size &amp;quot;Setting the staff size&amp;quot;] in the LilyPond manual.&lt;br /&gt;
&lt;br /&gt;
==Image frame==&lt;br /&gt;
===Alignment===&lt;br /&gt;
{{Image frame&lt;br /&gt;
|content = &amp;lt;score&amp;gt;&lt;br /&gt;
    \relative c&amp;#039; {&lt;br /&gt;
        \clef treble \time 7/4 \hide Staff.TimeSignature&lt;br /&gt;
        c4 d e f g a b c2&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
|width=|caption = Diatonic scale on C, a &amp;quot;white note&amp;quot; scale&lt;br /&gt;
}}&lt;br /&gt;
Use {{tl|Image frame}} to align scores to the left, center, or right.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
:&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;{{Image frame&lt;br /&gt;
|content = &amp;lt;score&amp;gt;&lt;br /&gt;
    \relative c&amp;#039; {&lt;br /&gt;
        \clef treble \time 7/4 \hide Staff.TimeSignature&lt;br /&gt;
        c4 d e f g a b c2&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
|width=|caption = Diatonic scale on C, a &amp;quot;white note&amp;quot; scale&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
results in the image to the right.&lt;br /&gt;
&lt;br /&gt;
===Grouping===&lt;br /&gt;
{{Image frame|content=&amp;lt;score&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
\override Score.TimeSignature #&amp;#039;stencil = ##f&lt;br /&gt;
\relative c&amp;#039; { &lt;br /&gt;
  \clef treble \time 4/4&lt;br /&gt;
  e4^\markup { Enharmonic genus } feh geses a b ceh deses e&lt;br /&gt;
&lt;br /&gt;
} }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
\override Score.TimeSignature #&amp;#039;stencil = ##f&lt;br /&gt;
\relative c&amp;#039; { &lt;br /&gt;
  \clef treble \time 4/4&lt;br /&gt;
  e4^\markup { Chromatic genus } f ges a b c des e&lt;br /&gt;
&lt;br /&gt;
} }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
\override Score.TimeSignature #&amp;#039;stencil = ##f&lt;br /&gt;
\relative c&amp;#039; { &lt;br /&gt;
  \clef treble \time 4/4&lt;br /&gt;
  e4^\markup { Diatonic genus } f g a b c d e&lt;br /&gt;
} }&lt;br /&gt;
&amp;lt;/score&amp;gt;|width=300|caption=The three genera of the Dorian [[octave species]] on E}}&lt;br /&gt;
&lt;br /&gt;
{{tl|Image frame}} may also be used to group score images together. The text below creates the group of images to the right:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;tid&amp;quot;&amp;gt;&lt;br /&gt;
{{Image frame|content=&amp;lt;score&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
\override Score.TimeSignature #&amp;#039;stencil = ##f&lt;br /&gt;
\relative c&amp;#039; { &lt;br /&gt;
  \clef treble \time 4/4&lt;br /&gt;
  e4^\markup { Enharmonic genus } feh geses a b ceh deses e&lt;br /&gt;
&lt;br /&gt;
} }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
\override Score.TimeSignature #&amp;#039;stencil = ##f&lt;br /&gt;
\relative c&amp;#039; { &lt;br /&gt;
  \clef treble \time 4/4&lt;br /&gt;
  e4^\markup { Chromatic genus } f ges a b c des e&lt;br /&gt;
&lt;br /&gt;
} }&lt;br /&gt;
&amp;lt;/score&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;score&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
\override Score.TimeSignature #&amp;#039;stencil = ##f&lt;br /&gt;
\relative c&amp;#039; { &lt;br /&gt;
  \clef treble \time 4/4&lt;br /&gt;
  e4^\markup { Diatonic genus } f g a b c d e&lt;br /&gt;
} }&lt;br /&gt;
&amp;lt;/score&amp;gt;|width=300|caption=The three genera of the Dorian [[octave species]] on E}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{wikisourcehas|complementary help pages at|[[s:Help:Sheet music|Help:Sheet music]]}}&lt;br /&gt;
* [[Wikipedia:Lyrics and poetry]]&lt;br /&gt;
* [[Special:PagesWithProp/score]], pages where {{Tag|score}} is used&lt;br /&gt;
* Pages with errors are shown in [[:Category:Pages with score rendering errors]]&lt;br /&gt;
* For some of the history of attempts to add LilyPond support, see [[Wikipedia:GNU LilyPond support/historical proposal]]&lt;br /&gt;
* [[Help:Music]]&lt;br /&gt;
* {{tl|Music}}&lt;br /&gt;
* [[s:de:Benutzer:Sinuhe20/Spielwiese|Sinuhe20/Spielwiese]] presents dozens of helpful examples, even for those who cannot read  the German headings&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
{{Wikipedia technical help|collapsed}}&lt;br /&gt;
[[Category:Wikipedia editor help]]&lt;br /&gt;
[[Category:Wikipedia text help]]&lt;/div&gt;</summary>
		<author><name>Tachyony</name></author>
	</entry>
</feed>