Module:JI ratios in ED: Difference between revisions
mNo edit summary |
m Bugfixing prime limit parsing |
||
| Line 213: | Line 213: | ||
local int_limit = tonumber(frame.args["Integer Limit"]) or 99 | local int_limit = tonumber(frame.args["Integer Limit"]) or 99 | ||
local primes = 5 | local primes = tonumber(frame.args["Prime Limit"]) or 5 | ||
local temperament_type = "Prime Limit" | local temperament_type = "Prime Limit" | ||
if string.len(frame.args["Subgroup"]) > | if string.len(frame.args["Subgroup"]) > 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 | ||