Module:Interval table: Difference between revisions

BudjarnLambeth (talk | contribs)
Tried changing allowed error from 40 cents to scaling amount. I will test immediately and if the tables are broken, I will undo.
BudjarnLambeth (talk | contribs)
mNo edit summary
Line 136: Line 136:
-- Go through all ratios, if they are mapped to the current step in the ET's patent val and <2/5 edo step error, add to approximate ratios column
-- Go through all ratios, if they are mapped to the current step in the ET's patent val and <2/5 edo step error, add to approximate ratios column
t = mapping(u.get_monzo(ratios_list[j][1], ratios_list[j][2]), patent_val)
t = mapping(u.get_monzo(ratios_list[j][1], ratios_list[j][2]), patent_val)
if t == i and math.abs(ET.cents(et, i) - u._log(ratios_list[j][1]/ratios_list[j][2], 2) * 1200) < (1200/(2.5 * et.size)) then
if t == i and math.abs(ET.cents(et, i) - u._log(ratios_list[j][1]/ratios_list[j][2], 2) * 1200) < (1200 / (2.5 * et.size)) then
wikitext = wikitext .. '[[' .. ratios_list[j][1] .. '/' .. ratios_list[j][2] .. ']], '
wikitext = wikitext .. '[[' .. ratios_list[j][1] .. '/' .. ratios_list[j][2] .. ']], '
end
end