Module:MOS in EDO: Difference between revisions
ArrowHead294 (talk | contribs) m Function «tamnams_name» is undefined, commenting out for now |
Undo revision 149804 by ArrowHead294 (talk) Undo commenting in preparation for actual fix Tag: Undo |
||
| Line 412: | Line 412: | ||
-- Also add tamnams name if there is one | -- Also add tamnams name if there is one | ||
local scale_sig = p.mos_step_pattern_to_scale_sig(current_scale) | local scale_sig = p.mos_step_pattern_to_scale_sig(current_scale) | ||
local tamnams_name = tamnams.tamnams_name[scale_sig] | |||
local current_step_count = #current_scale | local current_step_count = #current_scale | ||
if large_step_size == small_step_size then | if large_step_size == small_step_size then | ||
result = result .. string.format("| [[%iedo]]\n", edo / step_ratio_gcd) | result = result .. string.format("| [[%iedo]]\n", edo / step_ratio_gcd) | ||
elseif tamnams_name ~= nil and current_step_count > 5 then | |||
result = result .. string.format("| [[%s]] (%s)\n", scale_sig, tamnams_name) | |||
else | else | ||
result = result .. string.format("| [[%s]]\n", scale_sig) | result = result .. string.format("| [[%s]]\n", scale_sig) | ||