Module:Harmonics in equal: Difference between revisions

ArrowHead294 (talk | contribs)
Undo revision 144809 by ArrowHead294 (talk)
Tag: Undo
Godtone (talk | contribs)
m if the goal of using the unicode minus is to make - the same width as + then it fails because it makes - longer than + which looks and feels awkward enough to disorient me when trying to read key info; therefore if the goal is to increase readability it fails that quite badly too; also, by using anything other than the ASCII hyphen/minus sign you potentially confuse anyone copying numeric data, and for those aware it's a bother to have to convert to ASCII minus signs...
Line 43: Line 43:
ev = math.floor(v + .5)
ev = math.floor(v + .5)
table.insert(tpri, "" .. p)
table.insert(tpri, "" .. p)
table.insert(tabs, "" .. string.gsub(string.format(fmt_abs, 1200 * equave * (ev - v ) / steps), "%-", "−"))
table.insert(tabs, "" .. string.gsub(string.format(fmt_abs, 1200 * equave * (ev - v ) / steps), "%-", "-"))
table.insert(trel, "" .. string.gsub(string.format(fmt_rel, 100 * (ev - v)), "%-", "−"))
table.insert(trel, "" .. string.gsub(string.format(fmt_rel, 100 * (ev - v)), "%-", "-"))
if reduction then
if reduction then
table.insert(tdeg, '' .. ev .. '<br>('.. ev % steps .. ')')
table.insert(tdeg, '' .. ev .. '<br>('.. ev % steps .. ')')