Module:Temperament data: Difference between revisions
CompactStar (talk | contribs) No edit summary |
CompactStar (talk | contribs) No edit summary |
||
| Line 172: | Line 172: | ||
period = period * (subgroup[i]^preimage[i][1]) | period = period * (subgroup[i]^preimage[i][1]) | ||
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(period) / math.log(2) | ||
| Line 268: | Line 267: | ||
end | end | ||
for i = 1, #(pote_generator[1]) do | for i = 1, #(pote_generator[1]) do | ||
if | if subgroup[1] == 2 and i == 1 then | ||
result = result .. '~' .. trim(unparsed_gens[i]) .. ' = ' .. '1\\1' .. ', ' | result = result .. '~' .. trim(unparsed_gens[i]) .. ' = ' .. '1\\1' .. ', ' | ||
else | else | ||