Module:JI ratios: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 4: | Line 4: | ||
local med = require("Module:Mediants") | local med = require("Module:Mediants") | ||
p = {} | p = {} | ||
-- Template for handling multiple entry of JI ratios into a template, and for | -- Template for handling multiple entry of JI ratios into a template, and for | ||
| Line 42: | Line 39: | ||
----------------------- INT-LIMIT-BASED SEARCH FUNCTION ------------------------ | ----------------------- INT-LIMIT-BASED SEARCH FUNCTION ------------------------ | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- Int-limit-based search; finds ratios between 1/1 and an equave, within an int | -- Int-limit-based search; finds ratios between 1/1 and an equave, within an int | ||
| Line 302: | Line 253: | ||
local tenney_height_text = string.format("Ratios shown are within the %s-integer limit", search_params["Int Limit"]) | local tenney_height_text = string.format("Ratios shown are within the %s-integer limit", search_params["Int Limit"]) | ||
local int_limit_text = search_params["Tenney Height"] ~= nil and string.format(", capped at a Tenney height of %.1f.", search_params["Tenney Height"]) or "." | local int_limit_text = search_params["Tenney Height"] ~= nil and string.format(", capped at a Tenney height of %.1f.", search_params["Tenney Height"]) or "." | ||
result = tenney_height_text .. | result = tenney_height_text .. ". " .. result | ||
end | end | ||
return result | return result | ||