Module:TAMNAMS: Difference between revisions
m Bugfix to ancestor lookup |
m Fixed dark gen small size being major when it should be perfect |
||
| Line 457: | Line 457: | ||
-- Is perfectable? This is for intervals for which maj/min does not apply. | -- Is perfectable? This is for intervals for which maj/min does not apply. | ||
local is_perfectable = is_period or (is_bright_gen and not is_root_mos) or ( | local is_perfectable = is_period or (is_bright_gen and not is_root_mos) or (is_dark_gen and not is_root_mos) | ||
-- Get chroma count and adjust as needed | -- Get chroma count and adjust as needed | ||
| Line 582: | Line 582: | ||
function p.tester() | function p.tester() | ||
local input_mos = mos.new(4, | local input_mos = mos.new(4,3) | ||
local brightest_mode = mos.brightest_mode(input_mos) | local brightest_mode = mos.brightest_mode(input_mos) | ||
local interval_qualities = {} | local interval_qualities = {} | ||
for i = 1, | local step_matrices = mos.modes_to_step_matrices(input_mos) | ||
local | for i = 1, mos.equave_step_count(input_mos) do | ||
local qualities = "" | |||
for j = 1, #step_matrices[i] do | |||
table.insert(interval_qualities, | qualities = qualities .. p.decode_quality(step_matrices[i][j], input_mos, "shortened") .. " " | ||
--qualities = qualities .. (step_matrices[i][j] ~= nil and "Y" or "N") .. " " | |||
end | |||
table.insert(interval_qualities, qualities) | |||
end | end | ||
return interval_qualities | return interval_qualities | ||