Template:Step vis/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}{{lua}}
{{dochead}}{{substitute|no}}{{lua}}
This template is used to visualize the step pattern of a scale given as a sequence of whole-number step sizes.
This template is used to visualize the step pattern of a scale given as a sequence of whole-number step sizes.


Line 5: Line 5:
Step patterns are entered as shown below. The first parameter should contain the step pattern, with step sizes separated by spaces.
Step patterns are entered as shown below. The first parameter should contain the step pattern, with step sizes separated by spaces.


For example, you can use these
For example, you can use this


<pre>{{Step vis|4 4 2 4 4 4 2}}</pre>
<pre>{{Step vis|4 1 4 1 4 1 4 1 4 1 4 1 4}}</pre>
<pre>{{Step vis|4 1 4 1 4 1 4 1 4}}</pre>


to illustrate the [[5L&nbsp;2s]] and [[5L&nbsp;4s]] scales in [[24edo]]:
to illustrate the [[7L&nbsp;6s]] scale in [[34edo]]:


{{{{ROOTPAGENAME}}|4 4 2 4 4 4 2}}
{{{{ROOTPAGENAMEE}}|4 1 4 1 4 1 4 1 4 1 4 1 4}}
 
{{{{ROOTPAGENAME}}|4 1 4 1 4 1 4 1 4}}


Step patterns are drawn using the {{w|Box-drawing character|Unicode box-drawing symbols}} ├ (<code>U+251C</code>), ┤ (<code>U+2524</code>), ─ (<code>U+2500</code>), and ┼ (<code>U+253C</code>).
Step patterns are drawn using the {{w|Box-drawing character|Unicode box-drawing symbols}} ├ (<code>U+251C</code>), ┤ (<code>U+2524</code>), ─ (<code>U+2500</code>), and ┼ (<code>U+253C</code>).
Line 22: Line 19:


<pre>{{Step vis|5 2 5 0 4 5 0 5 3 1 4 0 5}}</pre>
<pre>{{Step vis|5 2 5 0 4 5 0 5 3 1 4 0 5}}</pre>
{{{{ROOTPAGENAME}}|5 2 5 0 4 5 0 5 3 1 4 0 5}}
{{{{ROOTPAGENAMEE}}|5 2 5 0 4 5 0 5 3 1 4 0 5}}


<pre>{{Step vis|0 0 5 2 5 0 0 0 4 5 0 5 3 0 0 1 4 0 5 3 2 0 0 0}}</pre>
<pre>{{Step vis|0 0 5 2 5 0 0 0 4 5 0 5 3 0 0 1 4 0 2 3 5 0 0 0}}</pre>
{{{{ROOTPAGENAME}}|0 0 5 2 5 0 0 0 4 5 0 5 3 0 0 1 4 0 5 3 2 0 0 0}}
{{{{ROOTPAGENAMEE}}|0 0 5 2 5 0 0 0 4 5 0 5 3 0 0 1 4 0 2 3 5 0 0 0}}

Latest revision as of 11:25, 3 July 2025

This template should not be substituted.

This template is used to visualize the step pattern of a scale given as a sequence of whole-number step sizes.

Usage

Step patterns are entered as shown below. The first parameter should contain the step pattern, with step sizes separated by spaces.

For example, you can use this

{{Step vis|4 1 4 1 4 1 4 1 4 1 4 1 4}}

to illustrate the 7L 6s scale in 34edo:

├───┼┼───┼┼───┼┼───┼┼───┼┼───┼┼───┤

Step patterns are drawn using the Unicode box-drawing symbols ├ (U+251C), ┤ (U+2524), ─ (U+2500), and ┼ (U+253C).

Regarding step sizes of 0

Step sizes of 0 are depicted using the symbol ╫ (U+256B), ╢ (U+2562), or ╟ (U+255F), depending on the location.

{{Step vis|5 2 5 0 4 5 0 5 3 1 4 0 5}}

├────┼─┼────╫───┼────╫────┼──┼┼───╫────┤

{{Step vis|0 0 5 2 5 0 0 0 4 5 0 5 3 0 0 1 4 0 2 3 5 0 0 0}}

╟────┼─┼────╫───┼────╫────┼──╫┼───╫─┼──┼────╢