Module:MOS tuning spectrum: Difference between revisions
added code to simplify step ratios |
bugfix parsing absence of custom initial ratios |
||
| Line 172: | Line 172: | ||
-- Parse initial ratios | -- Parse initial ratios | ||
local initial_ratios = tip.parse_numeric_pairs(args["Initial Ratios"], ",", "/", true) | local initial_ratios_unparsed = args["Initial Ratios"] | ||
local initial_ratios = {} | |||
if initial_ratios_unparsed ~= nil then | |||
initial_ratios = tip.parse_numeric_pairs(args["Initial Ratios"], ",", "/", true) | |||
else | |||
initial_ratios = {{1,1}, {1,0}} | |||
end | |||
-- Then generate mediants and depths | -- Then generate mediants and depths | ||