Template:Music/doc
This is a documentation subpage for Template:Music. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 7,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
{{Music}} renders Western music notation of various types into Wikipedia and improves cross-browser support for music symbols. Per Wikipedia:Manual of Style (music)#Accidentals, this template (or the terms "flat", etc.) should be used in preference to the lowercase letter "b" and the number sign (#).
The images used here are categorized at commons:Category:Template:Music, so if you change an image used please try to remember to update the categorization.
Accidentals
The template correctly renders Unicode accidentals, sharps (♯), flats (♭), and natural signs (♮) in Internet Explorer which would otherwise display empty squares unless a full Unicode font is chosen in its Preferences. The choice of fonts also improves the rendering in other browsers on Microsoft Windows such as Mozilla Firefox. See the tables below to compare the results in your current browser. The template makes use of SVG to display double flat (), double sharp (double sharp), and microtonal signs since the corresponding Unicode characters are not widely supported.
Symbol | Unicode entity |
Unicode result |
Template text |
Template result |
---|---|---|---|---|
Flat | ♭ |
♭ | flat}} or {{music|b}} or {{music|♭}} or {{flat}} |
♭ |
Natural | ♮ |
♮ | natural}} or {{music|n}} or {{music|♮}} |
♮ |
Sharp | ♯ |
♯ | sharp}} or {{music|#}} or {{music|♯}} or {{sharp}} |
♯ |
Double flat |
𝄫 |
𝄫 | doubleflat}} or {{music|bb}} or {{music|𝄫}} |
|
Double sharp | 𝄪 |
𝄪 | doublesharp}} or {{music|##}} or {{music|x}} or {{music|𝄪}} |
double sharp |
Triple flat |
|
tripleflat}} or {{music|bbb}} |
triple flat | |
Triple sharp | |
triplesharp}} or {{music|###}} or {{music|#x}} |
♯triple sharp | |
Half flat |
𝄳 |
𝄳 | halfflat}} or {{music|d}} |
half flat |
Half sharp |
𝄲 |
𝄲 | halfsharp}} or {{music|t}} |
half sharp |
Flat stroke |
𝄳 |
𝄳 | flatstroke}} | flat stroke |
Double flat stroke |
|
doubleflatstroke}} | double flat stroke | |
Three quarter flat | |
threequarterflat}} or {{music|db}} |
three quarter flat | |
Three quarter sharp | |
threequartersharp}} or {{music|#t}} |
three quarter sharp | |
Septimal quarter tone (-) | |
7}} or{{music|septimal}} |
7 | |
Septimal quarter tone (+) | |
L}} or{{music|septimal plus}} |
7 upside-down | |
11th partial [53 cents] (-) | |
down}} or {{music|11U}} |
↓ | |
11th partial [difference between 11:8 & 4:3] (+) | |
up}} or {{music|11}} |
↑ | |
13th partial [26.8 cents] (-) | |
E1}} or{{music|13U}} |
13 upside down | |
13th partial [difference between 13:8 & 8:5] (+) | |
13}} or{{music|thirteen}} |
13 | |
17th partial [34.28 cents] (-) | |
17 upside down}} or {{music|L1}} or {{music|17U}} |
17 upside down | |
17th partial [difference between 17:16 & 25:24] (+) | |
17}} | 17 | |
19th partial [18.13 cents] (-) | |
19}} | 19 | |
19th partial [difference between 19:16 & 6:5] (+) | |
19U}} | 19U | |
23rd partial [38.05 cents] (+) | |
23}} | 23 | |
29th partial [11.98 cents] (+) | |
29}} | 29 | |
31st partial [-56.77 cents] (-) | |
1E}} or{{music|31U}} |
31U | |
31st partial [56.77 cents] (+) | |
31}} | 31 | |
37th partial [Difference between 37/32 and 75/64] (-) | |
37}} | 37 | |
37th partial [23.24 cents] (+) | |
37U}} | 37U | |
Syntonic comma [+21.51 cents] (+) | |
plus}} | + | |
Syntonic comma [-21.51 cents] (-) | |
minus}} | - | |
Septimal quarter tone [-48.7 cents] (-) | |
check up}} | File:Sims flagged arrow up.svg | |
Septimal quarter tone [+48.7 cents] (+) | |
check}} | File:Sims flagged arrow down.svg | |
Sixth tone [+33.33 cents] (+) | |
half check up}} | File:Half up arrow.png | |
Sixth tone [-33.33 cents] (-) | |
half check}} | File:Half down arrow.png |
- Sample text
The C♯ crops up very early in Beethoven's Symphony No. 3 in E♭.
Notes and rests
Symbol | Unicode entity |
Unicode result |
Template text |
Template result |
---|---|---|---|---|
Double whole note | 𝅜 |
𝅜 | ||
Whole note |
𝅝 |
𝅝 | wholenote}} or {{music|whole}} or {{music|semibreve}} |
whole note |
Half note |
𝅗𝅥 |
𝅗𝅥 | halfnote}} or {{music|half}} or {{music|minim}} |
half note |
Quarter note |
𝅘𝅥 |
𝅘𝅥 | quarternote}} or {{music|quarter}} or {{music|crotchet}} |
|
Eighth note |
𝅘𝅥𝅮 |
𝅘𝅥𝅮 | eighthnote}} or {{music|eighth}} or {{music|quaver}} |
|
Beamed eighth notes |
eighthnotebeam}} or {{music|eighthbeam}} or {{music|quaverbeam}} |
beamed eighth notes | ||
Sixteenth note |
𝅘𝅥𝅯 |
𝅘𝅥𝅯 | sixteenthnote}} or {{music|sixteenth}} or {{music|semiquaver}} |
sixteenth note |
Beamed sixteenth notes |
sixteenthnotebeam}} or {{music|sixteenthbeam}} or {{music|semiquaverbeam}} |
beamed sixteenth notes | ||
Thirty- second note |
𝅘𝅥𝅰 |
𝅘𝅥𝅰 | thirty-secondnote}} or {{music|thirty-second}} or {{music|demisemiquaver}} |
thirty-second note |
Sixty- fourth note |
𝅘𝅥𝅱 |
𝅘𝅥𝅱 | sixty-fourthnote}} or {{music|sixty-fourth}} or {{music|hemidemisemiquaver}} |
sixty-fourth note |
Hundred twenty- eighth note |
𝅘𝅥𝅲 |
𝅘𝅥𝅲 | ||
Dot | 𝅭 |
𝅭 | dot}} | . |
Dotted quarter note |
𝅘𝅥𝅭 |
𝅘𝅥𝅭 | dottedquarter}} or {{music|dottedcrotchet}} |
|
Dotted half note |
𝅗𝅥𝅭 |
𝅗𝅥𝅭 | dottedhalf}} or {{music|dottedminim}} |
dotted half note. |
Double whole rest | 𝄺 |
𝄺 | ||
Whole rest |
𝄻 |
𝄻 | wholerest}} or {{music|semibreverest}} |
whole rest |
Half rest |
𝄼 |
𝄼 | halfrest}} or {{music|minimrest}} |
half rest |
Quarter rest |
𝄽 |
𝄽 | quarterrest}} or {{music|crotchetrest}} |
quarter rest |
Eighth rest |
𝄾 |
𝄾 | eighthrest}} or {{music|quaverrest}} |
eighth rest |
Sixteenth rest |
𝄿 |
𝄿 | sixteenthrest}} or {{music|semiquaverrest}} |
sixteenth rest |
Thirty- second rest |
𝅀 |
𝅀 | thirtysecondrest}} or {{music|demisemiquaverrest}} |
thirty-second rest |
Sixty- fourth rest |
𝅁 |
𝅁 | sixtyfourthrest}} or {{music|hemidemisemiquaverrest}} |
thirty-second rest |
Hundred twenty- eighth rest |
𝅂 |
𝅂 |
Some browsers and typefaces support ♩
(♩) and ♪
(♪) for quarter and eighth notes, as well as ♫
(♫) and ♬
(♬) for beamed eighth-note and sixteenth-note pairs respectively, but since the display of these characters does not match any of the other (non-supported) notes and rests, this template does not use these characters.
- Sample text
In place of the single whole note (whole note), Chopin writes eighth rest half note
, completely changing the profile of the music.
Clefs
Symbol | Unicode entity | Unicode result | Template text |
Template result | |
---|---|---|---|---|---|
Treble clef or G-clef |
𝄞 |
𝄞 | treble}} or {{music|trebleclef}} or {{music|gclef}} |
treble clef | |
Alto clef |
alto}} or {{music|altoclef}} |
alto clef | |||
Tenor clef |
tenor}} or {{music|tenorclef}} |
tenor clef | |||
C-clef | 𝄡 |
𝄡 | cclef}} | C clef | |
Bass clef or F-clef |
𝄢 |
𝄢 | bass}} or {{music|bassclef}} or {{music|fclef}} |
bass clef | |
Neutral clef | 𝄥 |
𝄥 | neutral}} or {{music|neutralclef}} |
Note that there is no graphical distinction between treble clef and G-clef; alto clef, tenor clef and C-clef; bass clef and F-clef. The names preserve a difference in meaning and make the caption text (for screen readers) different.
Time signatures
Symbol | Unicode entity | Unicode result | Template text |
Template result |
---|---|---|---|---|
common-time | 𝄴 |
𝄴 | common-time}} | common time |
cut-time | 𝄵 |
𝄵 | cut-time}} or {{music|alla-breve}} |
cut time |
2/4 | time|2|4}} | 2 4 | ||
3/4 | time|3|4}} | 3 4 | ||
3/8 | time|3|8}} | 3 8 | ||
6/8 | time|6|8}} | 6 8 | ||
9/8 | time|9|8}} | 9 8 | ||
12/8 | time|12|8}} | 12 8 |
For a general time signature, use {{music|time|top number|bottom number}}
. This makes use of Template:Time signature, which should not be used on its own.
Scale degrees
Scale degrees are often represented as Arabic numerals with a hat on them and thus the root of a scale is scale degree 1.
Scale degree | Template text |
Template result |
---|---|---|
1 | scale|1}} | scale degree 1 |
2 | scale|2}} | scale degree 2 |
3 | scale|3}} | scale degree 3 |
4 | scale|4}} | scale degree 4 |
5 | scale|5}} | scale degree 5 |
6 | scale|6}} | scale degree 6 |
7 | scale|7}} | scale degree 7 |
8 | scale|8}} | scale degree 8 |
9 | scale|9}} | scale degree 9 |
- Sample text
A descending tetrachord could be written as scale degree 4-scale degree 3-scale degree 2-scale degree 1.
Chord symbols and figured bass
Chord | Template text |
Template result |
---|---|---|
Diminished | dim}} or {{music|dimdeg}} |
o or ° |
Half-diminished | halfdim}} or {{music|dimslash}} |
ø |
Augmented | +}} or {{music|aug}} |
+ |
Major | Δ}} or {{music|delta}} or {{music|major}} or {{music|maj}} |
Δ |
Root position | 53}} or {{music|53 chord}} |
5 3 |
First inversion | 63}} or {{music|63 chord}} or {{music|6 chord}} |
6 or 6 3 |
Second inversion | 64}} or {{music|64 chord}} |
6 4 |
Seventh chord root position | 7 chord}} | 7 |
Seventh chord first inversion | 65}} or {{music|65 chord}} |
6 5 |
Seventh chord second inversion | 43 chord}} | 4 3 |
Seventh chord third inversion | 2}} or {{music|2 chord}} or {{music|42}} |
2 or 4 2 |
Walter Piston's notation of viio | 07 chord}} | 0 7 |
Ninth chord first inversion | 75}} or {{music|75 chord}} |
7 5 |
Ninth chord second inversion | 65}} or {{music|65 chord}} |
6 5 |
Ninth chord third inversion | 643}} or {{music|643 chord}} |
6 4 3 |
Ninth chord fourth inversion | 642}} or {{music|642 chord}} |
6 4 2 |
- Sample text
- viio7 becomes viiø7 in B♭ minor by raising the G♭ to G♮.
- III becomes III+ in G♯ minor by raising the F♯ to Fdouble sharp.
- The F♯Δ7 is used to great effect in the last measure of the piece.
Key signatures
Key signatures must be typed in using the names of the articles themselves on keys. Note that there is no visual difference between the major and minor key signatures, but the alt text is different.
Sharps/Flats | Key signature (major) | Template text |
Template result |
Key signature (minor) | Template text |
Template result |
---|---|---|---|---|---|---|
7♯ | C♯ major | c-sharp major}} | C-sharp major | A♯ minor | a-sharp minor}} | A-sharp minor |
6♯ | F♯ major | f-sharp major}} | F-sharp major | D♯ minor | d-sharp minor}} | D-sharp minor |
5♯ | B major | b major}} | B major | G♯ minor | g-sharp minor}} | G-sharp minor |
4♯ | E major | e major}} | E major | C♯ minor | c-sharp minor}} | C-sharp minor |
3♯ | A major | a major}} | A major | F♯ minor | f-sharp minor}} | F-sharp minor |
2♯ | D major | d major}} | D major | B minor | b minor}} | B minor |
1♯ | G major | g major}} | G major | E minor | e minor}} | E minor |
0 | C major | c major}} | C major | A minor | a minor}} | A minor |
1♭ | F major | f major}} | F major | D minor | d minor}} | D minor |
2♭ | B♭ major | b-flat major}} | B-flat major | G minor | g minor}} | G minor |
3♭ | E♭ major | e-flat major}} | E-flat major | C minor | c minor}} | C minor |
4♭ | A♭ major | a-flat major}} | A-flat major | F minor | f minor}} | F minor |
5♭ | D♭ major | d-flat major}} | D-flat major | B♭ minor | b-flat minor}} | B-flat minor |
6♭ | G♭ major | g-flat major}} | G-flat major | E♭ minor | e-flat minor}} | E-flat minor |
7♭ | C♭ major | c-flat major}} | C-flat major | A♭ minor | a-flat minor}} | A-flat minor |
Bars
Symbol | Unicode entity |
Unicode result |
Template text |
Template result |
---|---|---|---|---|
Left repeat | 𝄆 | 𝄆 | left repeat}} | left repeat |
Right repeat | 𝄇 | 𝄇 | right repeat}} | right repeat |
Changing the size
Most symbols generated by this template, including double flats and sharps, notes, rests and key signatures, use images, as corresponding Unicode characters either don't exist or are not supported by all browsers. Unlike characters, images don't scale along with the surrounding text. To change the size of an image, to match the font size of the text in which it is placed, use the |size=
parameter. Example:
See also