Template:Infobox chord/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
document Root parameter |
||
| Line 1: | Line 1: | ||
{{dochead}} | {{dochead}} | ||
=== 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. | 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. | ||
The template will add the page to the categories when appropriate: | The template will add the page to the categories when appropriate: | ||
Revision as of 05:20, 12 August 2024
- This template is implemented by the Lua module Module:Infobox chord.
- This template invokes the following functions: infobox_chord from Infobox chord.
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:
- Category: 3-limit chords, Category: 5-limit chords, …
- Category: 7-odd-limit chords, Category: 9-odd-limit chords, …
- Category: Triads, Category: Tetrads, …
- Category: Todo:remove manual line breaks
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 Harmonics. | |
| Prime limit | Overall prime limit of the chord. Derived from Harmonics. | |
| Odd limit | Odd limit of all intervals found within the chord. Derived from Harmonics. |
Examples
Script error: No such module "Infobox Chord".
Usage example:
{{Infobox Chord
| 4:5:6:7
| Name = harmonic seventh chord, barbershop seventh
}}