User:Dave Keenan/sagittal: Difference between revisions

Dave Keenan (talk | contribs)
No edit summary
Dave Keenan (talk | contribs)
No edit summary
 
(67 intermediate revisions by the same user not shown)
Line 6: Line 6:
     {{pipe}} | ¦ }} |
     {{pipe}} | ¦ }} |
   (¦\ |
   (¦\ |
   <span style="display: inline-block; transform: translateY(9px) scaleY(-1);"><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.28em; display: inline-block; transform: translateY(0.18em);">&#xE30F;</span></span> |
   <span style="display: inline-block; transform: translateY(9px) scaleY(-1);"><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|0.6em}}}; vertical-align: -0.255em; display: inline-block; transform: translateY(0.22em); margin-right: .05em;">&#xE30F;</span></span> |
   <span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em; {{#switch:
   <span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|0.6em}}}; vertical-align: -0.3em; margin-right: .05em; {{#switch:
   {{#replace:
   {{#replace:
     {{#replace:
     {{#replace:
Line 287: Line 287:
///¦    = ">&#xE41C; |
///¦    = ">&#xE41C; |
\\\!    = ">&#xE41D; |
\\\!    = ">&#xE41D; |
ntAwh    = ">&#xE169; |
ntBwh    = ">&#xE16C; |
ntCwh    = ">&#xE16F; |
ntDwh    = ">&#xE172; |
ntEwh    = ">&#xE175; |
ntFwh    = ">&#xE178; |
ntGwh    = ">&#xE17B; |
ntAhf    = ">&#xE180; |
ntBhf    = ">&#xE183; |
ntChf    = ">&#xE186; |
ntDhf    = ">&#xE189; |
ntEhf    = ">&#xE18C; |
ntFhf    = ">&#xE18F; |
ntGhf    = ">&#xE192; |
ntAbl    = ">&#xE197; |
ntBbl    = ">&#xE19A; |
ntCbl    = ">&#xE19D; |
ntDbl    = ">&#xE1A0; |
ntEbl    = ">&#xE1A3; |
ntFbl    = ">&#xE1A6; |
ntGbl    = ">&#xE1A9; |
nhwh    = ">&#xE0A2; |
nhhf    = ">&#xE0A3; |
nhbl    = ">&#xE0A4; |
">{{#replace:
">{{#replace:
     {{#replace:
     {{#replace:
Line 292: Line 316:
       ¦⌫ | }} |
       ¦⌫ | }} |
     ¦ | {{pipe}} }}
     ¦ | {{pipe}} }}
}}</span>}}&#x2060;&#x200A;&#x2060;</includeonly><noinclude>
}}</span>}}</includeonly><noinclude>
The '''Sagittal''' template converts a [[sagitype]] code (the pictorial ASCII code for sagittal) into a [[sagittal]] symbol in the BravuraText font.


== Usage notes ==
text{{nbhsp}}{{../sagittal| /| }}{{../sagittal| (!/ }}{{../sagittal| (|\ }}text
This template accepts one unnamed argument and two named arguments:
# Text in the form of sagitype, representing a sagittal or related symbol.
# (optional) '''size =''' a CSS font-size value; defaults to "250%".
# (optional) '''height =''' a CSS line-height value; defaults to "16px".


'''Note:''' Pipe characters (<code>&#124;</code>) do not need to be escaped.
text{{nbhsp}}{{../sagittal| !) }}text


'''Note:''' Short-sagitype (single-character codes for common sagittals) is not supported.
{{../sge| (¦) | (!) | jat |  729/704  | 11 large diesis }}
{{../sge| (¦\ | (!/ | jak | 8505/8192 | 35 large diesis }}


== Examples ==
{| class="wikitable sortable right-3"
{| class="wikitable" style="text-align: center;"
! You type !! You get
|-
|-
| <code><nowiki>{{sagittal| /| }}</nowiki></code> || <span class="bravura" style="font-size: 250%; line-height: 16px; vertical-align: -0.3em;">&#xE302;</span>
! Frequency Ratio
! Cents Value<br>(7 sig. dig.)
! [[Sagittal notation|Sagittal <br> notation]]
! colspan="2" |[[Color notation|Color Name]]
! FJS Name
! Some common names
|-
|-
| <code><nowiki>{{sagittal| !) }}</nowiki></code> || <span class="bravura" style="font-size: 250%; line-height: 16px; vertical-align: -0.3em;">&#xE305;</span>
| [[27/13]]
| 1265.337
| <ref group=note>The [[Sagittal]] column shows a pitch-class-sensitive [[Sagittal_notation#Athenian|Athenian]] [[Sagittal_notation#Evo|Evo]] notation with 1/1 = C. A white notehead {{sagittal|nhhf|size=300%}} indicates exact notation while black {{sagittal|nhbl|size=300%}} indicates approximation (typically within 2&#x202F;¢).</ref>&hairsp;&hairsp;{{../sagittal| (|\ |size=300%}}{{../sagittal|ntChf|size=400%}}&numsp;&numsp;
| 3u8
| thu8ve&numsp;&numsp;&numsp;&numsp;&numsp;<ref group=note>In the color names, "co" or "c" stands for compound, {{w|Interval (music) #Compound intervals|a conventional music term}}.</ref>
| A8<sub>13</sub>&numsp;<ref group=note>If any [[FJS]] names are missing, please [https://misotanni.github.io/fjs/en/calc.html add] them.</ref>
| Luxembourg eighth
|-
| [[23/11]]
| 1276.956
| {{../sagittal| (!( |size=300%}}{{../sagittal| # |size=300%}}{{../sagittal|ntChf|size=400%}}&numsp;&numsp;
| 23o1u9
| twetholu 9th
| A8<sup>23</sup><sub>11</sub>
| vicesimotertial minor ninth
|-
| [[19/9]]
| 1293.603
| {{../sagittal| |( |size=300%}}{{../sagittal| b |size=300%}}{{../sagittal|ntDhf|size=400%}}&numsp;&numsp;
| 19o9
| ino 9th
| m9<sup>19</sup>
| undevicesimal minor ninth
|-
| [[17/8]]
| 1304.955
| {{../sagittal| ~|( |size=300%}}{{../sagittal| b |size=300%}}{{../sagittal|ntDhf|size=400%}}&numsp;&numsp;
| 17o9
| iso 9th
| m9<sup>17</sup>
| septendecimal minor ninth
|-
| [[32/15]]
| 1311.731
| {{../sagittal| /| |size=300%}}{{../sagittal| b |size=300%}}{{../sagittal|ntDhf|size=400%}}&numsp;&numsp;
| g9
| gu 9th
| m9<sub>5</sub>
| classic minor ninth
|}
|}
Notes<references group=note />


== See also ==
* [[Sagittal notation]]
* [[Sagitype]]
* [[Template:Bravura]]
[[Category:Font templates]]
</noinclude>
</noinclude>