Module:Infobox MOS: Difference between revisions
Added links to parent and daughter |
mNo edit summary |
||
| Line 205: | Line 205: | ||
-- - Scale must be octave-equivalent; equave-agnostic names aren't supported right now | -- - Scale must be octave-equivalent; equave-agnostic names aren't supported right now | ||
-- - Scale must be within the "named range" (IE, it must appear in the mos module's tables for name, prefix, and abbrev) | -- - Scale must be within the "named range" (IE, it must appear in the mos module's tables for name, prefix, and abbrev) | ||
-- - Octave-equivalent scales with note counts greater than 10 report the closest named mos | -- - Octave-equivalent scales with note counts greater than 10 report the closest named mos instead | ||
function p.tamnams_information(input_mos) | function p.tamnams_information(input_mos) | ||
local input_mos = input_mos or mos.new(5, 2) | local input_mos = input_mos or mos.new(5, 2) | ||
| Line 225: | Line 225: | ||
} | } | ||
-- Scale is outside the "named range" | -- Scale is outside the "named range" | ||
elseif input_mos.nL + input_mos.ns > 10 then | elseif input_mos.nL + input_mos.ns > 10 and not input_mos.nL == input_mos.ns then | ||
local ancestor_mos, lg_chunk, sm_chunk, generations = p.find_mos_ancestor(input_mos) | local ancestor_mos, lg_chunk, sm_chunk, generations = p.find_mos_ancestor(input_mos) | ||
local ancestor_scalesig = mos.as_string(ancestor_mos) | local ancestor_scalesig = mos.as_string(ancestor_mos) | ||