Module:MOS intro: Difference between revisions

Ganaram inukshuk (talk | contribs)
Fixed error with displaying names
Ganaram inukshuk (talk | contribs)
Added step patterns (scales of the true mos form...) to the intro
Line 142: Line 142:
end
end
return sentence
end
-- Helper function
-- Calculates the brightest mode of the true mos
function p.mos_intro_step_pattern(input_mos)
local input_mos = input_mos or mos.new(5, 2)
local brightest_mode = mos.brightest_mode(input_mos)
local sentence = string.format("Scales of the true MOS form take on a [[step pattern]] of %s or some [[rotation]] thereof.", brightest_mode)
return sentence
return sentence
end
end
Line 199: Line 211:
local scalesig_and_names = p.mos_intro_scalesig_and_tamnams_names(input_mos, tamnams_parsed, other_parsed)
local scalesig_and_names = p.mos_intro_scalesig_and_tamnams_names(input_mos, tamnams_parsed, other_parsed)
local steps_and_periods = p.mos_intro_steps_and_periods(input_mos)
local steps_and_periods = p.mos_intro_steps_and_periods(input_mos)
local step_pattern = p.mos_intro_step_pattern(input_mos)
local gens = p.mos_intro_generator_ranges(input_mos)
local gens = p.mos_intro_generator_ranges(input_mos)
return string.format("%s %s %s", scalesig_and_names, steps_and_periods, gens)
return string.format("%s %s %s %s", scalesig_and_names, steps_and_periods, step_pattern, gens)
end
end