Module:Harmonics in edo: Difference between revisions

Inthar (talk | contribs)
No edit summary
Inthar (talk | contribs)
No edit summary
Line 14: Line 14:
     ev = math.floor(v + .5)
     ev = math.floor(v + .5)
     table.insert(todd, ' ' .. p .. '/' .. 2^math.floor(s) )
     table.insert(todd, ' ' .. p .. '/' .. 2^math.floor(s) )
     table.insert(todd, 1200*math.round(math.log(p) / math.log(2)*edo)/edo % 1200 )
     table.insert(todd, 1200*math.round(math.log(p) / math.log(2)*edo, 0)/edo % 1200 )
     table.insert(tabs, string.format(fmt_abs, 1200 * (ev - v ) / edo))
     table.insert(tabs, string.format(fmt_abs, 1200 * (ev - v ) / edo))
     table.insert(tdeg, ' ' .. ev % edo .. ' ')
     table.insert(tdeg, ' ' .. ev % edo .. ' ')