Module:Scale tree: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 94: Line 94:
-- are proper if the step ratio is within the soft-of-basic range
-- are proper if the step ratio is within the soft-of-basic range
if n < s then
if n < s then
default_comments["2/1"] = default_comments["2/1"] .. "<br>Scales with tunings softer than this are proper"
default_comments["2/1"] = default_comments["2/1"] .. "<br />Scales with tunings softer than this are proper"
end
end
Line 112: Line 112:
-- - Comments
-- - Comments
local result = string.format("{| class=\"wikitable center-all\"\n")
local result = string.format("{| class=\"wikitable center-all\"\n")
.. string.format("|+ style=\"font-size: 105%%;\" | Scale Tree and Tuning Spectrum of %s\n", mos_as_string)
.. "|+ style=\"font-size: 105%;\" | " .. string.format("Scale Tree and Tuning Spectrum of %s\n", mos_as_string)
.. string.format("! rowspan=\"2\" colspan=\"%d\" | Generator<sup><abbr title=\"In steps of ed%s.\">(ed%s)</abbr></sup>\n", depth + 1, equave_suffix, equave_suffix)
.. string.format("! rowspan=\"2\" colspan=\"%d\" | Generator<sup><abbr title=\"In steps of ed%s.\">(ed%s)</abbr></sup>\n", depth + 1, equave_suffix, equave_suffix)
.. "! colspan=\"2\" | Cents\n"
.. "! colspan=\"2\" | Cents\n"
Line 178: Line 178:
comment = custom_comment
comment = custom_comment
else
else
comment = default_comment .. "<br>" .. custom_comment
comment = default_comment .. "<br />" .. custom_comment
end
end
result = result .. string.format("| style=\"text-align: left;\" | %s\n", comment)
result = result .. string.format("| style=\"text-align: left;\" | %s\n", comment)