Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
rewrite tamnams info section
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 186: Line 186:
-- a larger array.
-- a larger array.
function p.tamnams_information(input_mos)
function p.tamnams_information(input_mos)
local input_mos = input_mos or mos.new(9,18,3)
local input_mos = input_mos or mos.new(5,2)
-- If a mos is octave-equivalent and has 10 or fewer steps, then it has a
-- If a mos is octave-equivalent and has 10 or fewer steps, then it has a
-- tamnams name/prefix/abbrev.
-- tamnams name/prefix/abbrev.
-- If a mos is octave-equivalent, has more than 10 steps, and has up to 5
-- If a mos is octave-equivalent and has more than 10 steps, then:
-- periods, then it relates to a tamnams-named mos. (If its closest named
-- - If it has 5 periods or less, then its closest ancestor has a tamnams
-- ancestor has a tamnams name, then it can be described as a related mos).
--   name.
-- If a mos is octave-equivalent, has more than 10 steps, and has more than
-- - If it has more than 5 periods, then it relates to a root mos nL ns that
-- 5 periods, then it relates to a root mos outside the "named range".
--  has more than 10 steps and is outside the named range.
-- If a mos is not octave-equivalent, then it may have a tamnams name (if
-- If a mos is not octave-equivalent, then it may have a tamnams name (if
-- step count is 5 or less; currently unsupported) or not.
-- step count is 5 or less; currently unsupported) or not.