Module:JI ratios in ED: Difference between revisions
Added back feature where unison/equave rows only show ratios for unison and equave |
Added default values |
||
| Line 204: | Line 204: | ||
-- Parse the ed; if it's just a number, interpret it as an edo | -- Parse the ed; if it's just a number, interpret it as an edo | ||
local input_et_unparsed = frame.args["ED"] | local input_et_unparsed = frame.args["ED"] or 12 | ||
if tonumber(input_et_unparsed) ~= nil then | if tonumber(input_et_unparsed) ~= nil then | ||
input_et_unparsed = input_et_unparsed .. "edo" | input_et_unparsed = input_et_unparsed .. "edo" | ||
| 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 = | local primes = 5 | ||
local temperament_type = "" | local temperament_type = "Prime Limit" | ||
if string.len(frame.args["Subgroup"]) > 0 then | 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"], ',') | ||