Module:MOS in EDO allperiods: Difference between revisions

Ganaram inukshuk (talk | contribs)
Corrected spelling of gcd function
Ganaram inukshuk (talk | contribs)
Commented out extra text as it was cluttering up the output
Line 61: Line 61:
local gen = i
local gen = i
local comp = period_in_edosteps - gen
local comp = period_in_edosteps - gen
result = result .. string.format("MOS scales with generators %i\\%i and %i\\%i.\n", gen, edo, comp, edo)
--result = result .. string.format("MOS scales with generators %i\\%i and %i\\%i.\n", gen, edo, comp, edo)
-- Skip mosses that are supported by subset edos; this happens if the
-- Skip mosses that are supported by subset edos; this happens if the
Line 71: Line 71:
local subset_gen = gen / gcd;
local subset_gen = gen / gcd;
local subset_comp = comp / gcd;
local subset_comp = comp / gcd;
result = result .. string.format('Generators form a subset scale in [[%iedo]] with the generators %i\\%i and %i\\%i.\n', subset_edo, subset_gen, subset_edo, subset_comp, subset_edo)
--result = result .. string.format('Generators form a subset scale in [[%iedo]] with the generators %i\\%i and %i\\%i.\n', subset_edo, subset_gen, subset_edo, subset_comp, subset_edo)
else
else
-- TODO: Rewrite code here for entry of temperaments as a set of
-- TODO: Rewrite code here for entry of temperaments as a set of