Module:Temperament data/Badness testing: Difference between revisions
CompactStar (talk | contribs) No edit summary |
CompactStar (talk | contribs) No edit summary |
||
Line 339: | Line 339: | ||
local e = 0.0 | local e = 0.0 | ||
for i = 1, #(te_tuning[1]) do | for i = 1, #(te_tuning[1]) do | ||
e = e + math.abs(te_tuning[1][i]) | e = e + math.abs((te_tuning[1][i] * 1200) - ((math.log(subgroup[i])/math.log(2)) * 1200)) | ||
end | end | ||
e = e/#(te_tuning[1]) | e = e/#(te_tuning[1]) |