Module:Interval table: Difference between revisions
fixes, cleanup |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 93: | Line 93: | ||
} | } | ||
local wikitext = '{|class="wikitable"\n' | local wikitext = '{| class="wikitable"\n' | ||
local fifth = patent_val[3] - patent_val[2] | local fifth = patent_val[3] - patent_val[2] | ||
local fifth_error = ET.cents(et, fifth) - rat.cents(rat.new(3, 2)) | local fifth_error = ET.cents(et, fifth) - rat.cents(rat.new(3, 2)) | ||
| Line 103: | Line 103: | ||
local ratios_list = get_ratios_list(81, 5, 13) | local ratios_list = get_ratios_list(81, 5, 13) | ||
wikitext = wikitext .. "!Steps\n" | wikitext = wikitext .. "! Steps\n" | ||
wikitext = wikitext .. "!Cents\n" | wikitext = wikitext .. "! Cents\n" | ||
if rat.eq(et.equave, 2) then | if rat.eq(et.equave, 2) then | ||
if dual_fifth then | if dual_fifth then | ||
wikitext = wikitext | wikitext = wikitext | ||
.. "![[Ups and downs notation]]<br>(dual flat fifth " | .. "! [[Ups and downs notation]]<br>(dual flat fifth " | ||
.. dual_flat_fifth | .. dual_flat_fifth | ||
.. "\\" | .. "\\" | ||
| Line 114: | Line 114: | ||
.. ")\n" | .. ")\n" | ||
wikitext = wikitext | wikitext = wikitext | ||
.. "![[Ups and downs notation]]<br>(dual sharp fifth " | .. "! [[Ups and downs notation]]<br>(dual sharp fifth " | ||
.. dual_sharp_fifth | .. dual_sharp_fifth | ||
.. "\\" | .. "\\" | ||
| Line 120: | Line 120: | ||
.. ")\n" | .. ")\n" | ||
else | else | ||
wikitext = wikitext .. "![[Ups and downs notation]]\n" | wikitext = wikitext .. "! [[Ups and downs notation]]\n" | ||
end | end | ||
end | end | ||
wikitext = wikitext .. "!Approximate ratios\n" | wikitext = wikitext .. "! Approximate ratios\n" | ||
if #additional_split > 0 then | if #additional_split > 0 then | ||
for i = 1, #additional_split[1] do | for i = 1, #additional_split[1] do | ||
wikitext = wikitext .. "!" .. additional_split[1][i] .. "\n" | wikitext = wikitext .. " ! " .. additional_split[1][i] .. "\n" | ||
end | end | ||
end | end | ||