Module:JI ratios: Difference between revisions
m Change order of params so equave is first |
Bugfix prime-limit search |
||
| Line 93: | Line 93: | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- | -- Subgroup-based search; finds ratios between 1/1 and an equave, within a sub- | ||
-- group. An int limit is passed in to limit the size of output, since subgroups | -- group. An int limit is passed in to limit the size of output, since subgroups | ||
-- are infinite sets. An optional tenney height can be passed in to further | -- are infinite sets. An optional tenney height can be passed in to further | ||
| Line 211: | Line 211: | ||
-- Perform subgroup search on the primes found, as subgroup-search code can | -- Perform subgroup search on the primes found, as subgroup-search code can | ||
-- be reused for prime-limit search. | -- be reused for prime-limit search. | ||
return p.search_by_subgroup_within_equave(primes, int_limit | return p.search_by_subgroup_within_equave(equave, primes, int_limit, tenney_height) | ||
end | end | ||
| Line 341: | Line 341: | ||
function p.tester() | function p.tester() | ||
local ratios = p. | local ratios = p.search_by_prime_limit_within_equave(rat.new(2,1), 43, 10000000, nil) | ||
return p.ratios_as_text(ratios) | return p.ratios_as_text(ratios) | ||