Module:JI ratios in ED: Difference between revisions
m Added filtering by complement-agnostic tenney height |
m First column filters by prime limit; successive columns filter by harmonic class |
||
| Line 54: | Line 54: | ||
local current_prime = primes[j] | local current_prime = primes[j] | ||
-- | -- The first column filters by prime limit | ||
local prime_filtered_ratios = jiraf.filter_ratios_by_harmonic_class(filtered_ratios, current_prime) | -- Successive columns are filered by harmonic class | ||
local prime_filtered_ratios = {} | |||
if j == 1 then | |||
prime_filtered_ratios = jiraf.filter_ratios_by_prime_limit(filtered_ratios, current_prime) | |||
else | |||
prime_filtered_ratios = jiraf.filter_ratios_by_harmonic_class(filtered_ratios, current_prime) | |||
end | |||
-- Filter ratios by complement-agnostic tenney height | -- Filter ratios by complement-agnostic tenney height | ||
| Line 102: | Line 108: | ||
local equave = p.parse_equave(frame.args["ED"]) | local equave = p.parse_equave(frame.args["ED"]) | ||
local primes = { | local primes = { 3, 5, 7, 11, 13 } | ||
if string.len(frame.args["Primes"]) > 0 then | if string.len(frame.args["Primes"]) > 0 then | ||
primes = tip.parse_numeric_entries(frame.args["Primes"], ',') | primes = tip.parse_numeric_entries(frame.args["Primes"], ',') | ||