Module:Scale tree: Difference between revisions
Moved step ratio ranges to hardness column, added back default comment for which step ratios are proper |
/ -> : |
||
| Line 136: | Line 136: | ||
-- Include appropriate tamnams name for step ratio | -- Include appropriate tamnams name for step ratio | ||
local step_ratio_as_text = string.format("%d:%d", step_ratio[1], step_ratio[2]) | local step_ratio_as_text = string.format("%d:%d", step_ratio[1], step_ratio[2]) | ||
if step_ratio_as_text == "1 | if step_ratio_as_text == "1:1" then | ||
result = result .. string.format("| %s (equalized)\n", step_ratio_as_text) | result = result .. string.format("| %s (equalized)\n", step_ratio_as_text) | ||
elseif step_ratio_as_text == "4 | elseif step_ratio_as_text == "4:3" then | ||
result = result .. string.format("| %s (supersoft)\n", step_ratio_as_text) | result = result .. string.format("| %s (supersoft)\n", step_ratio_as_text) | ||
elseif step_ratio_as_text == "3 | elseif step_ratio_as_text == "3:2" then | ||
result = result .. string.format("| %s (soft)\n", step_ratio_as_text) | result = result .. string.format("| %s (soft)\n", step_ratio_as_text) | ||
elseif step_ratio_as_text == "5 | elseif step_ratio_as_text == "5:3" then | ||
result = result .. string.format("| %s (semisoft)\n", step_ratio_as_text) | result = result .. string.format("| %s (semisoft)\n", step_ratio_as_text) | ||
elseif step_ratio_as_text == "2 | elseif step_ratio_as_text == "2:1" then | ||
result = result .. string.format("| %s (basic)\n", step_ratio_as_text) | result = result .. string.format("| %s (basic)\n", step_ratio_as_text) | ||
elseif step_ratio_as_text == "5 | elseif step_ratio_as_text == "5:2" then | ||
result = result .. string.format("| %s (semihard)\n", step_ratio_as_text) | result = result .. string.format("| %s (semihard)\n", step_ratio_as_text) | ||
elseif step_ratio_as_text == "3 | elseif step_ratio_as_text == "3:1" then | ||
result = result .. string.format("| %s (hard)\n", step_ratio_as_text) | result = result .. string.format("| %s (hard)\n", step_ratio_as_text) | ||
elseif step_ratio_as_text == "4 | elseif step_ratio_as_text == "4:1" then | ||
result = result .. string.format("| %s (superhard)\n", step_ratio_as_text) | result = result .. string.format("| %s (superhard)\n", step_ratio_as_text) | ||
elseif step_ratio_as_text == "1 | elseif step_ratio_as_text == "1:0" then | ||
result = result .. string.format("| %s (collapsed)\n", step_ratio_as_text) | result = result .. string.format("| %s (collapsed)\n", step_ratio_as_text) | ||
else | else | ||
| Line 173: | Line 173: | ||
-- Add default comments for which generators create a proper scale | -- Add default comments for which generators create a proper scale | ||
local comment = comments[key] or "" | local comment = comments[key] or "" | ||
if step_ratio_as_text == "2 | if step_ratio_as_text == "2:1" and s == n then | ||
comment = "Bright generators smaller than this are proper</br>" .. comment | comment = "Bright generators smaller than this are proper</br>" .. comment | ||
end | end | ||