Module:Infobox MOS: Difference between revisions
m Comments |
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( | 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 is_octave_equivalent = rat.eq(input_mos.equave, 2) | local is_octave_equivalent = rat.eq(input_mos.equave, 2) | ||
if | 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 { | ||