Module:MOS in EDO: Difference between revisions
mNo edit summary |
Decided that step visualization should come first |
||
| Line 359: | Line 359: | ||
result = result .. string.format('|+ Generators %i\\%i and %i\\%i\n', gen_in_edosteps, edo, comp_in_edosteps, edo) | result = result .. string.format('|+ Generators %i\\%i and %i\\%i\n', gen_in_edosteps, edo, comp_in_edosteps, edo) | ||
result = result .. string.format('|-\n') | result = result .. string.format('|-\n') | ||
result = result .. string.format('! Step visualization\n') | |||
result = result .. string.format('!MOS (name)\n') -- Scale sig (and name) | result = result .. string.format('!MOS (name)\n') -- Scale sig (and name) | ||
result = result .. string.format('!Step sizes\n') -- Step sizes | result = result .. string.format('!Step sizes\n') -- Step sizes | ||
| Line 365: | Line 366: | ||
result = result .. string.format('!Temperament\n') -- Temperament, if given | result = result .. string.format('!Temperament\n') -- Temperament, if given | ||
end | end | ||
-- Add the step pattern for successive mosses until the pattern becomes that for an edo | -- Add the step pattern for successive mosses until the pattern becomes that for an edo | ||
| Line 378: | Line 378: | ||
-- New row | -- New row | ||
result = result .. string.format('|-\n') | result = result .. string.format('|-\n') | ||
-- Add the step visualization | |||
local step_vis = p.step_pattern_to_simple_visualization(current_scale, period_in_edosteps) | |||
result = result .. string.format('| %s\n', step_vis) | |||
-- Add the scale sig | -- Add the scale sig | ||
| Line 405: | Line 409: | ||
result = result .. string.format("| %s[%i]\n", temperament, current_step_count) | result = result .. string.format("| %s[%i]\n", temperament, current_step_count) | ||
end | end | ||
-- Produce the next scale in the sequence | -- Produce the next scale in the sequence | ||