Module:JI ratios: Difference between revisions
tentatively put reverse-subgroup-search functions here for now; may need to be moved or adjusted later |
Add code skeletons for invoking ji ratios with other modules/templates; update todo |
||
| Line 4: | Line 4: | ||
local med = require("Module:Mediants") | local med = require("Module:Mediants") | ||
local yesno = require("Module:Yesno") | local yesno = require("Module:Yesno") | ||
local getArgs = require("Module:Arguments").getArgs | |||
p = {} | p = {} | ||
-- TODO | |||
-- - Transfer control over to new "main" function: p.ji_ratios() | |||
-- 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 420: | Line 424: | ||
return p.ratios_as_string(p.search_by_args_within_equave(equave, fine_search_args)) | return p.ratios_as_string(p.search_by_args_within_equave(equave, fine_search_args)) | ||
end | |||
-------------------------------------------------------------------------------- | |||
----------------------------- INVOKABLE FUNCTIONS ------------------------------ | |||
-------------------------------------------------------------------------------- | |||
-- Function callable by other modules | |||
function p._ji_ratios(args) | |||
end | |||
-- Invokable function; for templates | |||
function p.ji_ratios(frame) | |||
end | end | ||
return p | return p | ||