Module:MOS tunings: Difference between revisions

Ganaram inukshuk (talk | contribs)
Rename functions to reflect changes to ji ratios module
Ganaram inukshuk (talk | contribs)
m bugfix
Line 281: Line 281:
if unparsed == "" then
if unparsed == "" then
params = {["Int Limit"] = 30, ["Tenney Height"] = 9} -- Defualt search args if no args were passed in
search_args = {["Int Limit"] = 30, ["Tenney Height"] = 9} -- Defualt search args if no args were passed in
ratios = jira.search_by_args_within_equave(equave, search_args)
ratios = jira.search_by_args_within_equave(equave, search_args)
elseif unparsed == "NONE" then
elseif unparsed == "NONE" then
params = {}
search_args = {}
ratios = {}
ratios = {}
elseif string.match(unparsed, "Int Limit:") then
elseif string.match(unparsed, "Int Limit:") then
params = jira.parse_search_args(unparsed) -- Search requires at the absolute least an int limit, so see if there's "Int Limit"
search_args = jira.parse_search_args(unparsed) -- Search requires at the absolute least an int limit, so see if there's "Int Limit"
ratios = jira.search_by_args_within_equave(equave, search_args)
ratios = jira.search_by_args_within_equave(equave, search_args)
else
else
search_args = {}
ratios = jira.parse_ratios(unparsed)
ratios = jira.parse_ratios(unparsed)
params = {}
end
end