Template:MOS in EDO: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) +Debugger |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke: | <includeonly>{{#invoke: MOS_in_EDO | mos_in_edo_frame | ||
| EDO={{{EDO|}}} | | EDO={{{EDO|}}} | ||
| Generator={{{Generator|}}} | | Generator={{{Generator|}}} | ||
| Line 6: | Line 6: | ||
| Step Visualization={{{Step Visualization|}}} | | Step Visualization={{{Step Visualization|}}} | ||
| Generation Limit={{{Generation Limit|}}} | | Generation Limit={{{Generation Limit|}}} | ||
| debug={{lc:{{{debug|}}}}} | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | |||
[[Category:MOS scale templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 19:10, 27 February 2025
- This template is implemented by the Lua module Module:MOS in EDO.
- This template invokes the following functions: mos_in_edo_frame from MOS in EDO.
This template displays all MOS scales in a given EDO with a particular generator and number of periods per octave.
Parameters
| Parameters | Required? | Description |
|---|---|---|
EDO |
Yes | The number of divisions in the edo. |
Periods |
No (optional) | The number of periods in the mos. Default is 1. |
Temperament |
No (optional) | The name of any temperaments associated with this mos. |
Generation Limit |
No (optional) | If set, this puts a maximum limit to the number of rows in the resulting table. |
Step Visualization |
No | Unused. |
Usage
For typical use, enter the edo and generator in edosteps as shown.
{{MOS in EDO
| EDO=12
| Generator=7
}}
| Step visualization | MOS (name) | Step sizes | Step ratio |
|---|---|---|---|
| ├──────┼────┤ | 1L 1s | 7, 5 | 7:5 |
| ├─┼────┼────┤ | 2L 1s | 5, 2 | 5:2 |
| ├─┼─┼──┼─┼──┤ | 2L 3s | 3, 2 | 3:2 |
| ├─┼─┼─┼┼─┼─┼┤ | 5L 2s (diatonic) | 2, 1 | 2:1 |
| ├┼┼┼┼┼┼┼┼┼┼┼┤ | 12edo | 1, 1 | 1:1 |
Multi-period mosses
To display the mosses for a multi-period mos, enter the number of periods as shown below. The number of periods must divide the number of divisions without a remainder. The default value is 1 period.
{{MOS in EDO
| EDO=12
| Generator=5
| Periods=2
}}
| Step visualization | MOS (name) | Step sizes | Step ratio |
|---|---|---|---|
| ├────┼┼────┼┤ | 2L 2s | 5, 1 | 5:1 |
| ├───┼┼┼───┼┼┤ | 2L 4s (malic) | 4, 1 | 4:1 |
| ├──┼┼┼┼──┼┼┼┤ | 2L 6s (subaric) | 3, 1 | 3:1 |
| ├─┼┼┼┼┼─┼┼┼┼┤ | 2L 8s (jaric) | 2, 1 | 2:1 |
| ├┼┼┼┼┼┼┼┼┼┼┼┤ | 12edo | 1, 1 | 1:1 |
Limiting the number of rows
For large edos and for some generators, the number of rows in the table can be quite large. A limit on the number of rows can be entered as shown. The default is -1, which is no limit.
{{MOS in EDO
| EDO=31
| Generator=1
| Generation Limit=10
}}
| Step visualization | MOS (name) | Step sizes | Step ratio |
|---|---|---|---|
| ├┼─────────────────────────────┤ | 1L 1s | 30, 1 | 30:1 |
| ├┼┼────────────────────────────┤ | 1L 2s | 29, 1 | 29:1 |
| ├┼┼┼───────────────────────────┤ | 1L 3s | 28, 1 | 28:1 |
| ├┼┼┼┼──────────────────────────┤ | 1L 4s | 27, 1 | 27:1 |
| ├┼┼┼┼┼─────────────────────────┤ | 1L 5s (antimachinoid) | 26, 1 | 26:1 |
| ├┼┼┼┼┼┼────────────────────────┤ | 1L 6s (onyx) | 25, 1 | 25:1 |
| ├┼┼┼┼┼┼┼───────────────────────┤ | 1L 7s (antipine) | 24, 1 | 24:1 |
| ├┼┼┼┼┼┼┼┼──────────────────────┤ | 1L 8s (antisubneutralic) | 23, 1 | 23:1 |
| ├┼┼┼┼┼┼┼┼┼─────────────────────┤ | 1L 9s (antisinatonic) | 22, 1 | 22:1 |
| ├┼┼┼┼┼┼┼┼┼┼────────────────────┤ | 1L 10s | 21, 1 | 21:1 |
Temperament names
To add a temperament name, add it as shown. Note that how this is displayed is still work-in-progress.
{{MOS in EDO
| EDO=12
| Generator=5
| Periods=2
| Temperament=pajara
}}
| Step visualization | MOS (name) | Step sizes | Step ratio | Temperament |
|---|---|---|---|---|
| ├────┼┼────┼┤ | 2L 2s | 5, 1 | 5:1 | pajara[4] |
| ├───┼┼┼───┼┼┤ | 2L 4s (malic) | 4, 1 | 4:1 | pajara[6] |
| ├──┼┼┼┼──┼┼┼┤ | 2L 6s (subaric) | 3, 1 | 3:1 | pajara[8] |
| ├─┼┼┼┼┼─┼┼┼┼┤ | 2L 8s (jaric) | 2, 1 | 2:1 | pajara[10] |
| ├┼┼┼┼┼┼┼┼┼┼┼┤ | 12edo | 1, 1 | 1:1 | pajara[12] |