Module:MOS in EDO: Difference between revisions

ArrowHead294 (talk | contribs)
m Alphabetise dependencies
Ganaram inukshuk (talk | contribs)
m rename
 
(3 intermediate revisions by one other user not shown)
Line 192: Line 192:
-- Create table, starting with headers
-- Create table, starting with headers
local result = "{| class=\"wikitable center-all\"\n"
local result = "{| class=\"wikitable center-all\"\n"
.. "|+ style=\"font-size: 105%;\" | " .. string.format("Generators %i\\%i and %i\\%i\n", gen_in_edosteps, edo, comp_in_edosteps, edo)
.. "|+ style=\"font-size: 105%; white-space: nowrap;\" | " .. string.format("Generators %i\\%i and %i\\%i\n", gen_in_edosteps, edo, comp_in_edosteps, edo)
.. "|-\n"
.. "|-\n"
.. string.format("! colspan=\"%i\" | Steps\n", edo)
.. string.format("! colspan=\"%i\" | Steps\n", edo)
Line 333: Line 333:
-- Create table, starting with headers
-- Create table, starting with headers
local result = "{| class=\"wikitable center-all\"\n"
local result = "{| class=\"wikitable center-all\"\n"
.. "|+ style=\"font-size: 105%;\" | " .. string.format("Generators %i\\%i and %i\\%i\n", gen_in_edosteps, edo, comp_in_edosteps, edo)
.. "|+ style=\"font-size: 105%; white-space: nowrap;\" | " .. string.format("Generators %i\\%i and %i\\%i\n", gen_in_edosteps, edo, comp_in_edosteps, edo)
.. "|-\n"
.. "|-\n"
.. "! Step visualization\n"
.. "! Step visualization\n"
Line 357: Line 357:
-- Add the step visualization
-- Add the step visualization
local sv = step_vis.step_pattern_to_visualization(current_scale)
local sv = step_vis._step_vis(current_scale)
result = result .. string.format("| %s\n", sv)
result = result .. string.format("| %s\n", sv)
Line 408: Line 408:
local debugg = yesno(frame.args["debug"])
local debugg = yesno(frame.args["debug"])
local result = p.mos_in_edo_simplified(edo, gen_in_edosteps, number_of_periods, generation_limit, temperament)
local result = p.mos_in_edo_simplified(edo, gen_in_edosteps, number_of_periods, generation_limit, temperament)
return frame:preprocess(debugg == true and "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>" or result)
-- Debugger option
if debugg == true then
result = "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>"
end
return frame:preprocess(result)
end
end


return p
return p