Module:JI ratios in ED: Difference between revisions
m Bugfixed prime limit not working (hopefully) |
mNo edit summary |
||
| Line 215: | Line 215: | ||
local primes = 5 | local primes = 5 | ||
local temperament_type = "Prime Limit" | local temperament_type = "Prime Limit" | ||
if string.len(frame.args["Subgroup"]) > 0 and string.len(frame.args["Prime Limit"]) == | if string.len(frame.args["Subgroup"]) > 0 and string.len(frame.args["Prime Limit"]) == 0 then | ||
primes = tip.parse_numeric_entries(frame.args["Subgroup"], '.') or tip.parse_numeric_entries(frame.args["Subgroup"], ',') | primes = tip.parse_numeric_entries(frame.args["Subgroup"], '.') or tip.parse_numeric_entries(frame.args["Subgroup"], ',') | ||
temperament_type = "Subgroup" | temperament_type = "Subgroup" | ||
end | end | ||
if string.len(frame.args["Prime Limit"]) > 0 and string.len(frame.args["Subgroup"]) == | if string.len(frame.args["Prime Limit"]) > 0 and string.len(frame.args["Subgroup"]) == 0 then | ||
primes = tonumber(frame.args["Prime Limit"]) | primes = tonumber(frame.args["Prime Limit"]) | ||
temperament_type = "Prime Limit" | temperament_type = "Prime Limit" | ||