Module:JI ratios: Difference between revisions
Bugfix prime-limit search |
m bugfix again |
||
| Line 189: | Line 189: | ||
-- limits, as long as the prime is reasonably small. | -- limits, as long as the prime is reasonably small. | ||
function p.search_by_prime_limit_within_equave(equave, prime_limit, int_limit, tenney_height) | function p.search_by_prime_limit_within_equave(equave, prime_limit, int_limit, tenney_height) | ||
local prime_limit = | local prime_limit = prime_limit or 5 | ||
local int_limit = int_limit or 1000 | local int_limit = int_limit or 1000 | ||
local equave = equave or rat.new(2,1) -- Defualt equave is 2/1. | local equave = equave or rat.new(2,1) -- Defualt equave is 2/1. | ||
| Line 341: | Line 341: | ||
function p.tester() | function p.tester() | ||
local ratios = p. | local primes = { 2, 3, 5, 7, 11, 13, 17, 19 } | ||
local ratios = p.search_by_subgroup_within_equave(nil, primes, 4000, nil) | |||
return p.ratios_as_text(ratios) | return p.ratios_as_text(ratios) | ||