Module:MOS genchain: Difference between revisions

Ganaram inukshuk (talk | contribs)
Added textual description
Ganaram inukshuk (talk | contribs)
No edit summary
Line 96: Line 96:
end
end
result = result .. "|}"
result = result .. "|}"
local bright_gen_as_text = tamnams.interval_quality(mos.bright_gen(input_mos), input_mos)
local period_step_count = mos.period_step_count(input_mos)
local scalesig = mos.as_string(input_mos)
local child_step_count = input_mos.nL + input_mos.nL + input_mos.ns
local child_scale_1 = mos.new(input_mos.nL+input_mos.ns, input_mos.nL, input_mos.equave)
local child_scale_2 = mos.new(input_mos.nL, input_mos.nL+input_mos.ns, input_mos.equave)
--result = string.format("Stacking the bright generator (a %s) from the root produces the following scale degrees. A chain of %s consecutive scale degrees produces one of the modes of %s, and expanding it to %s scale degrees produces the modes of either %s or %s.\n",
-- bright_gen_as_text,
-- period_step_count,
-- scalesig,
-- child_step_count,
-- mos.as_string(child_scale_1),
-- mos.as_string(child_scale_2)
-- )
-- .. result
return result
return result
Line 153: Line 136:
result = result
result = result
.. " "
.. " "
.. string.format("A chain of %s consecutive scale degrees %sproduces one of the modes of %s.", period_step_count, (period_count == 1 and "" or "for each period "), scalesig)
.. string.format("A chain of %s bright generators %scontains the scale degrees of one of the modes of %s.", period_step_count, (period_count == 1 and "" or "from each period "), scalesig)
-- What scales are produced when the chain is extended further?
-- What scales are produced when the chain is extended further?