Module:MOS in EDO: Difference between revisions
m Simplified arg names |
Added generation count increment |
||
| Line 375: | Line 375: | ||
-- 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 | ||
local generation_count = | local generation_count = 0 | ||
while current_scale ~= nil and starting_mos_valid and generation_count <= generation_limit do | while current_scale ~= nil and starting_mos_valid and generation_count <= generation_limit do | ||
-- Calculate current step ratio | -- Calculate current step ratio | ||
| Line 420: | Line 420: | ||
-- Produce the next scale in the sequence | -- Produce the next scale in the sequence | ||
current_scale = p.calculate_next_mos_step_pattern(current_scale) | current_scale = p.calculate_next_mos_step_pattern(current_scale) | ||
-- Increment the generation (row) count | |||
generation_count = generation_count + 1 | |||
end | end | ||