Module:JI ratios in ED: Difference between revisions
Added exact ratio filtering (commas should no longer show up as unisons, nor their complements for the equave) |
mNo edit summary |
||
| Line 49: | Line 49: | ||
for i = 1, ed + 1 do | for i = 1, ed + 1 do | ||
local edstep = i - 1 | local edstep = i - 1 | ||
local edstep_in_cents = edstep * equave_in_cents | local edstep_in_cents = (edstep / ed) * equave_in_cents | ||
local filtered_ratios = jiraf.filter_ratios_by_range(candidate_ratios, edstep_in_cents - tolerance, edstep_in_cents + tolerance) | local filtered_ratios = jiraf.filter_ratios_by_range(candidate_ratios, edstep_in_cents - tolerance, edstep_in_cents + tolerance) | ||