Module:MOS tunings: Difference between revisions
Rename functions to reflect changes to ji ratios module |
m bugfix |
||
| Line 281: | Line 281: | ||
if unparsed == "" then | if unparsed == "" then | ||
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 | ||
search_args = {} | |||
ratios = {} | ratios = {} | ||
elseif string.match(unparsed, "Int Limit:") then | elseif string.match(unparsed, "Int Limit:") then | ||
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) | ||
end | end | ||