Module:Infobox ET: Difference between revisions

Fredg999 (talk | contribs)
m Display fifth size in decimal
Fredg999 (talk | contribs)
m Bug fixing
Line 10: Line 10:
end
end
local step_size = i._backslash_ratio('1\\' .. tuning)
local step_size = i._backslash_ratio('1\\' .. tuning)
local fifth = u._round(math.log(1.5)/math.log(equave)*size, 0)
local fifth = math.floor(math.log(1.5)/math.log(equave)*size+0.5)
return '<div style="\n' ..
return '<div style="\n' ..
'border: 1px solid #999;\n' ..
'border: 1px solid #999;\n' ..