Template:Music
{{Music}} renders Western music notation of various types into Wikibooks and improves cross-browser support for music symbols.
Accidentals
[edit source]The template correctly renders Unicode 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 (), and microtonal signs since the corresponding Unicode characters are not widely supported.
Symbol | Unicode entity |
Unicode result |
Template text |
Template result |
---|---|---|---|---|
Flat | ♭ |
♭ | {{music|flat}} or {{music|b}} or {{music|♭}} |
♭ |
Natural | ♮ |
♮ | {{music|natural}} or {{music|♮}} |
♮ |
Sharp | ♯ |
♯ | {{music|sharp}} or {{music|#}} or {{music|♯}} |
♯ |
Double flat |
𝄫 |
𝄫 | {{music|doubleflat}} or {{music|bb}} or {{music|𝄫}} |
|
Double sharp | 𝄪 |
𝄪 | {{music|doublesharp}} or {{music|##}} or {{music|𝄪}} |
|
Half flat |
𝄳 |
𝄳 | {{music|halfflat}} or {{music|d}} |
|
Half sharp |
𝄲 |
𝄲 | {{music|halfsharp}} or {{music|t}} |
|
Flat stroke |
𝄳 |
𝄳 | {{music|flatstroke}} |
|
Three quarter flat | |
{{music|threequarterflat}} or {{music|db}} |
||
Three quarter sharp | |
{{music|threequartersharp}} or {{music|#t}} |
- Sample text
The C♯ crops up very early in Beethoven's Symphony No. 3 in E♭.
Notes and rests
[edit source]Symbol | Unicode entity |
Unicode result |
Template text |
Template result |
---|---|---|---|---|
Whole note |
𝅝 |
𝅝 | {{music|wholenote}} or {{music|whole}} or {{music|semibreve}} |
|
Half note |
𝅗𝅥 |
𝅗𝅥 | {{music|halfnote}} or {{music|half}} or {{music|minim}} |
|
Quarter note |
𝅘𝅥 |
𝅘𝅥 | {{music|quarternote}} or {{music|quarter}} or {{music|crotchet}} |
|
Eighth note |
𝅘𝅥𝅮 |
𝅘𝅥𝅮 | {{music|eighthnote}} or {{music|eighth}} or {{music|quaver}} |
|
Sixteenth note |
𝅘𝅥𝅯 |
𝅘𝅥𝅯 | {{music|sixteenthnote}} or {{music|sixteenth}} or {{music|semiquaver}} |
|
Dot | . | . | {{music|dot}} |
|
Dotted quarter note |
𝅘𝅥𝅯 . |
𝅘𝅥𝅯. | {{music|dottedquarter}} or {{music|dottedcrotchet}} |
|
Whole rest |
𝄻 |
𝄻 | {{music|wholerest}} or {{music|semibreverest}} |
|
Half rest |
𝄼 |
𝄼 | {{music|halfrest}} or {{music|minimrest}} |
|
Quarter rest |
𝄽 |
𝄽 | {{music|quarterrest}} or {{music|crotchetrest}} |
|
Eighth rest |
𝄾 |
𝄾 | {{music|eighthrest}} or {{music|quaverrest}} |
|
Sixteenth rest |
𝄿 |
𝄿 | {{music|sixteenthrest}} or {{music|semiquaverrest}} |
Some browsers support ♩
(♩) and ♪
(♪) for quarter and eighth notes, but since the display is often ugly and 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 (), Chopin writes , completely changing the profile of the music.
Clefs
[edit source]Symbol | Template text |
Template result |
---|---|---|
Treble clef |
{{music|treble}} or {{music|trebleclef}} |
|
G-clef | {{music|gclef}} |
|
Alto clef |
{{music|alto}} or {{music|altoclef}} |
|
Tenor clef |
{{music|tenor}} or {{music|tenorclef}} |
|
C-clef | {{music|cclef}} |
|
Bass clef |
{{music|bass}} or {{music|bassclef}} |
|
F-clef | {{music|fclef}} |
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
[edit source]Symbol | Template text |
Template result |
---|---|---|
common-time | {{music|common-time}} |
|
cut-time | {{music|cut-time}} or {{music|alle-breve}} |
Scale degrees
[edit source]Scale degrees are often represented as Arabic numerals with a hat on them and thus the root of a scale is .
Scale degree | Template text |
Template result |
---|---|---|
1 | {{music|scale|1}} |
|
2 | {{music|scale|2}} |
|
3 | {{music|scale|3}} |
|
4 | {{music|scale|4}} |
|
5 | {{music|scale|5}} |
|
6 | {{music|scale|6}} |
|
7 | {{music|scale|7}} |
|
8 | {{music|scale|8}} |
|
9 | {{music|scale|9}} |
- Sample text
A descending tetrachord could be written as ---.
Chord symbols
[edit source]Chord | Template text |
Template result |
---|---|---|
Diminished | {{music|dim}} or {{music|dimdeg}} |
o or ° |
Half-diminished | {{music|halfdim}} or {{music|dimslash}} |
ø |
- Sample text
viio becomes viiø in B♭ minor by raising the G♭ to G♮