Module:MOS tunings: Difference between revisions
Ratio search looks for ratios between 1/1 and 2/1; if ratios above 2/1 are needed, then the previous ratios are raised up by 2/1 and added |
m Ratios above 2/1 are now only added if they're within the integer limit |
||
| Line 92: | Line 92: | ||
den = den / gcd | den = den / gcd | ||
table.insert(new_ratios, {num, den}) | if math.max(num, den) <= integer_limit then | ||
table.insert(new_ratios, {num, den}) | |||
end | |||
end | end | ||