Template:Infobox chord/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Bcmills (talk | contribs)
document Root parameter
ArrowHead294 (talk | contribs)
mNo edit summary
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}{{lua}}
The '''Infobox Chord''' template was built to help presenting basic information about [[chord]]s in a unified form, to make them obvious by glance. Also, the formatting of the wiki text itself is easier to read and improve when it is obviously structured by this template.
 
=== Usage ===
=== Usage ===
This template currently only supports JI chords in harmonic form, like <code><nowiki>{{Infobox Chord|4:5:6:7}}</nowiki></code>. The harmonics are inferred from the page name if not given explicitly. The optional <code>Root</code> parameter gives a harmonic number to be treated as the root of the chord.
This template currently only supports JI chords in harmonic form, like <code>{<nowiki />{Infobox chord|4:5:6:7}}</code>. The harmonics are inferred from the page name if not given explicitly. The optional <code>Root</code> parameter gives a harmonic number to be treated as the root of the chord.


The template will add the page to the categories when appropriate:
The template will add the page to the categories when appropriate:
* [[:Category: 3-limit chords]], [[:Category: 5-limit chords]], …
* [[:Category: 3-limit chords]], [[:Category: 5-limit chords]], …
* [[:Category: 7-odd-limit chords]], [[:Category: 9-odd-limit chords]], …
* [[:Category: 7-odd-limit chords]], [[:Category: 9-odd-limit chords]], …
* [[:Category: Triads]], [[:Category: Tetrads]], …
* [[:Category: Todo:remove manual line breaks]]
* [[:Category: Todo:remove manual line breaks]]


Line 12: Line 13:


{| class="wikitable"
{| class="wikitable"
! Entry
! Parameter
! Meaning, usage notes.
|-
|-
| Harmonics
! Entry !! Parameter !! Meaning !! usage notes
| 1, Harmonics
|-
| Chord as integer harmonics. Specified explicitly or derived from page name.
| Harmonics || 1, Harmonics || Chord as integer harmonics || Specified explicitly or derived from page name.
|-
|-
| Intervals from root
| Intervals from root || || Intervals relative to the first given harmonic || rowspan="3" | Derived from the <code>Harmonics</code> parameter.
|
| Intervals relative to the first given harmonic. Derived from Harmonics.
|-
|-
| Prime limit
| Prime limit || || Overall prime limit of the chord
|
| Overall prime limit of the chord. Derived from Harmonics.
|-
|-
| Odd limit
| Odd limit || || Odd limit of all intervals found within the chord.
|
| Odd limit of all intervals found within the chord. Derived from Harmonics.
|}
|}


=== Examples ===
=== Examples ===
{{#invoke:Infobox Chord|infobox_chord|Harmonics=4:5:6:7|Name=harmonic seventh, barbershop seventh|debug=true}}
Usage example:
Usage example:
<pre>
<pre>
{{Infobox Chord
{{Infobox chord
| 4:5:6:7
| 4:5:6:7
| Name = harmonic seventh chord, barbershop seventh
| ColorName = yo zo-7 or y,z7, har-7 or h7
}}
}}
</pre>
</pre>
{{{{ROOTPAGENAME}}
| Harmonics=4:5:6:7
| ColorName = yo zo-7 or y,z7, har-7 or h7
| debug=true
}}{{clear}}

Latest revision as of 15:58, 16 February 2025

The Infobox Chord template was built to help presenting basic information about chords in a unified form, to make them obvious by glance. Also, the formatting of the wiki text itself is easier to read and improve when it is obviously structured by this template.

Usage

This template currently only supports JI chords in harmonic form, like {{Infobox chord|4:5:6:7}}. The harmonics are inferred from the page name if not given explicitly. The optional Root parameter gives a harmonic number to be treated as the root of the chord.

The template will add the page to the categories when appropriate:

The template supports the following parameters:

Entry Parameter Meaning usage notes
Harmonics 1, Harmonics Chord as integer harmonics Specified explicitly or derived from page name.
Intervals from root Intervals relative to the first given harmonic Derived from the Harmonics parameter.
Prime limit Overall prime limit of the chord
Odd limit Odd limit of all intervals found within the chord.

Examples

Usage example:

{{Infobox chord
| 4:5:6:7
| ColorName = yo zo-7 or y,z7, har-7 or h7
}}
Chord information
Harmonics 4:5:6:7
Subharmonics 1/(105:84:70:60)
Intervals from root 1/1 – 5/4 – 3/2 – 7/4
Cents from root 0¢ 386¢ 702¢ 969¢
Step intervals 5/4, 6/5, 7/6
Step cents 386¢, 316¢, 267¢
Color names yo zo-7 or y,z7
har-7 or h7
Prime limit 7
Genus 3 ⋅ 5 ⋅ 7 (105)
Intervallic odd limit 7
Otonal odd limit 7
Utonal odd limit 105
Consistent edos (d ≥ 2) 31edo*, 41edo*, 68edo*, 72edo*