Module:Temperament data: Difference between revisions

CompactStar (talk | contribs)
No edit summary
CompactStar (talk | contribs)
No edit summary
Line 173: Line 173:
end
end
local te = get_te_generator(subgroup, comma_basis, preimage)
local te = get_te_generator(subgroup, comma_basis, preimage)
local stretch_factor = te[1][1] * math.log(period) / math.log(2)
local stretch_factor = te[1][1] * math.log(2) / math.log(period)
return scalarmatmul(te, 1/ stretch_factor)
return scalarmatmul(te, stretch_factor)
end
end