Module:MOS in EDO: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
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
result = result .. string.format('! Step visualization\n')


-- 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
-- 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)
-- Produce the next scale in the sequence
-- Produce the next scale in the sequence