Module:MOS in EDO: Difference between revisions

Ganaram inukshuk (talk | contribs)
m a spelling error
Ganaram inukshuk (talk | contribs)
Removing use of double-border, as it cluttered up the output
Line 162: Line 162:
local no_border = "─"
local no_border = "─"
local single_border = "┼"
local single_border = "┼"
local double_border = "╫"
local step_visualization = ""
local step_visualization = ""
Line 168: Line 167:
-- For each step size of k, print a single border, followed by k-1 no-border symbols
-- For each step size of k, print a single border, followed by k-1 no-border symbols
-- If this is the first step, print the left border instead
-- If this is the first step, print the left border instead
-- If this step is for a non-root non-equave period, print a double border instead
-- If this is the last step, add a right border after the entire sequence
-- If this is the last step, add a right border after the entire sequence
for i = 1, #step_pattern do
for i = 1, #step_pattern do
Line 176: Line 174:
if i == 1 then
if i == 1 then
current_step_vis = left_border .. string.rep(no_border, current_step_size - 1)
current_step_vis = left_border .. string.rep(no_border, current_step_size - 1)
elseif (i - 1) % edosteps_per_period == 0 and i ~= 1  and i ~= #step_pattern then
current_step_vis = double_border .. string.rep(no_border, current_step_size - 1)
else
else
current_step_vis = single_border .. string.rep(no_border, current_step_size - 1)
current_step_vis = single_border .. string.rep(no_border, current_step_size - 1)