Module:MOS in EDO: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
Removed unused param from step visualization function
Line 154: Line 154:
-- Helper function
-- Helper function
-- Create a step visualization that's based on the table on the diasem page
-- Create a step visualization that's based on the table on the diasem page
function p.step_pattern_to_simple_visualization(step_pattern, edosteps_per_period)
function p.step_pattern_to_simple_visualization(step_pattern)
local step_pattern = step_pattern or { 2, 2, 2, 1, 2, 2, 1 }
local step_pattern = step_pattern or { 2, 2, 2, 1, 2, 2, 1 }
local edosteps_per_period = edosteps_per_period or #step_pattern
local left_border = "├"
local left_border = "├"
Line 388: Line 387:
-- Add the step visualization
-- Add the step visualization
local step_vis = p.step_pattern_to_simple_visualization(current_scale, period_in_edosteps)
local step_vis = p.step_pattern_to_simple_visualization(current_scale)
result = result .. string.format('| %s\n', step_vis)
result = result .. string.format('| %s\n', step_vis)