Module:MOS in EDO allperiods: Difference between revisions
Looping up to sqrt(edo) skips a few factors after sqrt and before edo/2; fixed |
Added comments/todo |
||
| Line 170: | Line 170: | ||
end | end | ||
-- Wrapper function to be called by a template | |||
-- Args (TODO: implement): | |||
-- - EDO: the number of divisions; this should be later set up to extract it from the page's title. | |||
-- - Temperaments: the temperament names entered as key-value pairs, where the key is the genpair separated with a dash. | |||
-- - Show Subsets: set to 1 to show mosses of subset edos, such as 12edo mosses for 24edo. | |||
-- - Maximum Number of Periods: the maximum number of periods for mosses to display; default is "15" | |||
-- - Number of Periods: if ever set, then the template will show mosses for a specific period count. | |||
-- - Maximum Number of Steps: if set, mosses with more than this value will not be shown; default is 60. | |||
-- - Hide Step Pattern: if ever set to 1, this disables the step pattern visualization; will automatically set to 1 for mosses over 60edo, unless overridden. | |||
-- Maximum values can be overridden to have no max if set to "-1" | |||
function p.moses_in_edo_frame(frame) | function p.moses_in_edo_frame(frame) | ||