Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
m Comments
Ganaram inukshuk (talk | contribs)
m Bugfixing tamnams info section
Line 159: Line 159:
-- Determines what mos the given mos descends from
-- Determines what mos the given mos descends from
-- as well as what step ratio that produces this scale
-- as well as what step ratio that produces this scale
-- Mosses within the "named range" passed here will return itself
function p.find_mos_ancestor(input_mos)
function p.find_mos_ancestor(input_mos)
local input_mos = input_mos or mos.new(7, 7)
local input_mos = input_mos or mos.new(5, 2)
local z = input_mos.nL
local z = input_mos.nL
Line 213: Line 214:
local tamnams_abbrev = mos.tamnams_abbrev[scalesig] or ""
local tamnams_abbrev = mos.tamnams_abbrev[scalesig] or ""
local entries_not_blank = tamnams_name ~= ""
local is_octave_equivalent = rat.eq(input_mos.equave, 2)
local is_octave_equivalent = rat.eq(input_mos.equave, 2)
if entries_not_blank and is_octave_equivalent then
if is_octave_equivalent then
if input_mos.nL + input_mos.ns <= 10 then
if input_mos.nL + input_mos.ns <= 10 then
return {
return {