Module:Xenpaper: Difference between revisions
Undo revision 133561 by Ganaram inukshuk (talk) Tag: Undo |
Trying previous change again... |
||
Line 45: | Line 45: | ||
-- Create a Xenpaper link for a mode of a mos | -- Create a Xenpaper link for a mode of a mos | ||
-- TODO: support step sizes of c (L-s), A (L+c), and d (s-c) for modmosses | -- TODO: support step sizes of c (L-s), A (L+c), and d (s-c) for modmosses | ||
function p.mosstep_pattern_to_xenpaper_link( | function p.mosstep_pattern_to_xenpaper_link(abstract_step_pattern, step_ratio, equave) | ||
local abstract_step_pattern = abstract_step_pattern or "LLLsLLs" | local abstract_step_pattern = abstract_step_pattern or "LLLsLLs" | ||
local step_ratio = step_ratio or { 2, 1 } | local step_ratio = step_ratio or { 2, 1 } | ||
local equave = equave or 2 | |||
local L_size = step_ratio[1] | local L_size = step_ratio[1] | ||
Line 63: | Line 63: | ||
end | end | ||
return p.step_pattern_to_xenpaper_link(step_pattern, equave) | return p.step_pattern_to_xenpaper_link(step_pattern, equave) | ||