Module:MOS tunings: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
No edit summary
Line 180: Line 180:
end
end
-- Sort ratios by closeness to each degree in the modal union
local sorted_ratios = {}
local sorted_ratios = {}
local curr_index = 1 -- Index of current_ratio
local curr_index = 1 -- Index of current_ratio
Line 202: Line 203:
table.insert(sorted_ratios, curr_ratios)
table.insert(sorted_ratios, curr_ratios)
end
end
return avg_step_ratio
return sorted_ratios
end
end