Template:Music/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Script error: No such module "Message box". Script error: No such module "Distinguish". Script error: No such module "High-use". Template:Sister project

Template:Tl 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 for the accidentals) 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 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 ♭ Template:Tlc
or Template:Tlc
or Template:Tlc
or Template:Tlc
Natural ♮ Template:Tlc
or Template:Tlc
or Template:Tlc
Sharp ♯ Template:Tlc
or Template:Tlc
or Template:Tlc
or Template:Tlc
Double
flat
𝄫 𝄫 Template:Tlc
or Template:Tlc
or Template:Tlc
double flat
Double sharp 𝄪 𝄪 Template:Tlc
or Template:Tlc
or Template:Tlc
or Template:Tlc
double sharp
Triple
flat
Template:Tlc
or Template:Tlc
triple flat
Triple sharp ♯𝄪 ♯𝄪 Template:Tlc
or Template:Tlc
or Template:Tlc
triple sharp
Half
flat
𝄳 𝄳 Template:Tlc
or Template:Tlc
half flat
Half
sharp
𝄲 𝄲 Template:Tlc
or Template:Tlc
half sharp
Flat
stroke
𝄳 𝄳 Template:Tlc flat stroke
Double
flat
stroke
Template:Tlc double flat stroke
Three quarter flat Template:Tlc
or Template:Tlc
three quarter flat
Three quarter sharp Template:Tlc
or Template:Tlc
three quarter sharp
Septimal quarter tone (-) Template:Tlc or
Template:Tlc
7
Septimal quarter tone (+) Template:Tlc or
Template:Tlc
7 upside-down
11th partial [53 cents] (-) Template:Tlc
or Template:Tlc
11th partial [difference between 11:8 & 4:3] (+) Template:Tlc
or Template:Tlc
13th partial [26.8 cents] (-) Template:Tlc or
Template:Tlc
13 upside down
13th partial [difference between 13:8 & 8:5] (+) Template:Tlc or
Template:Tlc
13
17th partial [34.28 cents] (-) Template:Tlc
or Template:Tlc
or Template:Tlc
17 upside down
17th partial [difference between 17:16 & 25:24] (+) Template:Tlc 17
19th partial [18.13 cents] (-) Template:Tlc 19
19th partial [difference between 19:16 & 6:5] (+) Template:Tlc 19U
23rd partial [38.05 cents] (+) Template:Tlc 23
29th partial [11.98 cents] (+) Template:Tlc 29
31st partial [-56.77 cents] (-) Template:Tlc or
Template:Tlc
31U
31st partial [56.77 cents] (+) Template:Tlc 31
37th partial [Difference between 37/32 and 75/64] (-) Template:Tlc 37
37th partial [23.24 cents] (+) Template:Tlc 37U
Syntonic comma [+21.51 cents] (+) Template:Tlc +
Syntonic comma [-21.51 cents] (-) Template:Tlc -
Septimal quarter tone [-48.7 cents] (-) Template:Tlc File:Sims flagged arrow up.svg
Septimal quarter tone [+48.7 cents] (+) Template:Tlc File:Sims flagged arrow down.svg
Sixth tone [+33.33 cents] (+) Template:Tlc File:Half up arrow.png
Sixth tone [-33.33 cents] (-) Template:Tlc File:Half down arrow.png
Sample text
The C appears 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 𝅜 𝅜 Template:Tlc
or Template:Tlc
or Template:Tlc
double whole note
Whole
note
𝅝 𝅝 Template:Tlc
or Template:Tlc
or Template:Tlc
whole note
Half
note
𝅗𝅥 𝅗𝅥 Template:Tlc
or Template:Tlc
or Template:Tlc
half note
Quarter
note
𝅘𝅥 𝅘𝅥 Template:Tlc
or Template:Tlc
or Template:Tlc
quarter note
Eighth
note
𝅘𝅥𝅮 𝅘𝅥𝅮 Template:Tlc
or Template:Tlc
or Template:Tlc
eighth note
Beamed
eighth
notes
Template:Tlc
or Template:Tlc
or Template:Tlc
beamed eighth notes
Sixteenth
note
𝅘𝅥𝅯 𝅘𝅥𝅯 Template:Tlc
or Template:Tlc
or Template:Tlc
sixteenth note
Beamed
sixteenth
notes
Template:Tlc
or Template:Tlc
or Template:Tlc
beamed sixteenth notes
Thirty-
second
note
𝅘𝅥𝅰 𝅘𝅥𝅰 Template:Tlc
or Template:Tlc
or Template:Tlc
thirty-second note
Sixty-
fourth
note
𝅘𝅥𝅱 𝅘𝅥𝅱 Template:Tlc
or Template:Tlc
or Template:Tlc
sixty-fourth note
Hundred twenty-
eighth
note
𝅘𝅥𝅲 𝅘𝅥𝅲
Dot 𝅭 𝅭 Template:Tlc .
Dotted quarter
note
𝅘𝅥𝅭 𝅘𝅥𝅭 Template:Tlc
or Template:Tlc
dotted quarter note.
Dotted half
note
𝅗𝅥𝅭 𝅗𝅥𝅭 Template:Tlc
or Template:Tlc
dotted half note.
Double whole rest 𝄺 𝄺
Whole
rest
𝄻 𝄻 Template:Tlc
or Template:Tlc
whole rest
Half
rest
𝄼 𝄼 Template:Tlc
or Template:Tlc
half rest
Quarter
rest
𝄽 𝄽 Template:Tlc
or Template:Tlc
quarter rest
Eighth
rest
𝄾 𝄾 Template:Tlc
or Template:Tlc
eighth rest
Sixteenth
rest
𝄿 𝄿 Template:Tlc
or Template:Tlc
sixteenth rest
Thirty-
second
rest
𝅀 𝅀 Template:Tlc
or Template:Tlc
thirty-second rest
Sixty-
fourth
rest
𝅁 𝅁 Template:Tlc
or Template:Tlc
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
One half note and two quarter note quarter note are equivalent.

Clefs

Symbol Unicode entity Unicode result Template
text
Template
result
Treble clef
or G-clef
𝄞 𝄞 Template:Tlc
or Template:Tlc
or Template:Tlc
treble clef
Alto
clef
Template:Tlc
or Template:Tlc
alto clef
Tenor
clef
Template:Tlc
or Template:Tlc
tenor clef
C-clef 𝄡 𝄡 Template:Tlc C clef
Bass clef
or F-clef
𝄢 𝄢 Template:Tlc
or Template:Tlc
or Template:Tlc
bass clef
Neutral clef 𝄥 𝄥 Template:Tlc
or Template:Tlc

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 𝄴 𝄴 Template:Tlc common time
cut-time 𝄵 𝄵 Template:Tlc
or Template:Tlc
cut time
2/4 Template:Tlc Template:Time signature
3/4 Template:Tlc Template:Time signature
3/8 Template:Tlc Template:Time signature
6/8 Template:Tlc Template:Time signature
9/8 Template:Tlc Template:Time signature
12/8 Template:Tlc Template:Time signature

For a general time signature, use Template:Tlc. This makes use of Template:Tl; if an article uses many invocations of Template:Tlf it can lead to excessive post-expand include size; calling Template:Tlf will reduce that.

Scale degrees

Scale degrees are often represented as Arabic numerals with a hat on them and thus the submediant of a scale is scale degree 6.

Scale degree Template
text
Template
result
1 Template:Tlc scale degree 1
2 Template:Tlc scale degree 2
3 Template:Tlc scale degree 3
4 Template:Tlc scale degree 4
5 Template:Tlc scale degree 5
6 Template:Tlc scale degree 6
7 Template:Tlc scale degree 7
8 Template:Tlc scale degree 8
9 Template:Tlc scale degree 9
Sample text
The chord built on scale degree 4 of the major scale is a major chord.

Chord symbols and figured bass

Chord Template
text
Template
result
Diminished Template:Tlc o
Half-diminished Template:Tlc
or Template:Tlc
ø
Augmented Template:Tlc
or Template:Tlc
+
Major Template:Tlc
or Template:Tlc
or Template:Tlc
or Template:Tlc
Δ
Root position Template:Tlc
or Template:Tlc
Script error: No such module "Su".
First inversion Template:Tlc
or Template:Tlc
or Template:Tlc
6
or Script error: No such module "Su".
Second inversion Template:Tlc
or Template:Tlc
Script error: No such module "Su".
Seventh chord root position Template:Tlc 7
Seventh chord first inversion Template:Tlc
or Template:Tlc
Script error: No such module "Su".
Seventh chord second inversion Template:Tlc Script error: No such module "Su".
Seventh chord third inversion Template:Tlc
or Template:Tlc
or Template:Tlc
2
or Script error: No such module "Su".
Walter Piston's notation of viio Template:Tlc Script error: No such module "Su".
Ninth chord first inversion Template:Tlc
or Template:Tlc
Script error: No such module "Su".
Ninth chord second inversion Template:Tlc
or Template:Tlc
Script error: No such module "Su".
Ninth chord third inversion Template:Tlc
or Template:Tlc
Script error: No such module "Su".
Ninth chord fourth inversion Template:Tlc
or Template:Tlc
Script error: No such module "Su".
Sample text
DΔ7 consists of the notes D-F-A-C.

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 Template:Tlc C-sharp major A minor Template:Tlc A-sharp minor
6 F major Template:Tlc F-sharp major D minor Template:Tlc D-sharp minor
5 B major Template:Tlc B major G minor Template:Tlc G-sharp minor
4 E major Template:Tlc E major C minor Template:Tlc C-sharp minor
3 A major Template:Tlc A major F minor Template:Tlc F-sharp minor
2 D major Template:Tlc D major B minor Template:Tlc B minor
1 G major Template:Tlc G major E minor Template:Tlc E minor
0 C major Template:Tlc C major A minor Template:Tlc A minor
1 F major Template:Tlc F major D minor Template:Tlc D minor
2 B major Template:Tlc B-flat major G minor Template:Tlc G minor
3 E major Template:Tlc E-flat major C minor Template:Tlc C minor
4 A major Template:Tlc A-flat major F minor Template:Tlc F minor
5 D major Template:Tlc D-flat major B minor Template:Tlc B-flat minor
6 G major Template:Tlc G-flat major E minor Template:Tlc E-flat minor
7 C major Template:Tlc C-flat major A minor Template:Tlc A-flat minor

Bars

Symbol Unicode
entity
Unicode
result
Template
text
Template
result
Left repeat 𝄆 𝄆 Template:Tlc left repeat
Right repeat 𝄇 𝄇 Template:Tlc 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:

  • <span style="font-size:80%">G{{music|bb|size=x8px}}</span>Gdouble flat

See also