Module:MOS in EDO: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) m Non-breaking space |
||
| Line 357: | Line 357: | ||
-- Add the step visualization | -- Add the step visualization | ||
local sv = step_vis.step_pattern_to_visualization(current_scale) | local sv = step_vis.step_pattern_to_visualization(current_scale) | ||
result = result .. string.format("| %s | result = result .. string.format("| %s", sv) | ||
-- Add the scale sig | -- Add the scale sig | ||
| Line 365: | Line 365: | ||
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]] | result = result .. string.format(" || [[%iedo]]", edo / step_ratio_gcd) | ||
elseif tamnams_name ~= nil and current_step_count > 5 then | elseif tamnams_name ~= nil and current_step_count > 5 then | ||
result = result .. string.format("| [[%s]] (%s) | result = result .. string.format(" || [[%s]] (%s)", scale_sig, tamnams_name) | ||
else | else | ||
result = result .. string.format("| [[%s]] | result = result .. string.format(" || [[%s]]", scale_sig) | ||
end | end | ||
-- Add the step sizes | -- Add the step sizes | ||
result = result .. string.format("| %i, %i | result = result .. string.format(" || %i, %i", current_step_sizes["L"], current_step_sizes["s"]) | ||
-- Add step ratio | -- Add step ratio | ||
local reduced_large_step_size = large_step_size / step_ratio_gcd | local reduced_large_step_size = large_step_size / step_ratio_gcd | ||
local reduced_small_step_size = small_step_size / step_ratio_gcd | local reduced_small_step_size = small_step_size / step_ratio_gcd | ||
result = result .. string.format("| %s:%s | result = result .. string.format(" || %s:%s", reduced_large_step_size, reduced_small_step_size) | ||
-- Add the temperament name, if there is one | -- Add the temperament name, if there is one | ||
if show_temperament then | if show_temperament then | ||
local current_step_count = #current_scale | local current_step_count = #current_scale | ||
result = result .. string.format("| %s[%i]\n", temperament, current_step_count) | result = result .. string.format(" || %s[%i]\n", temperament, current_step_count) | ||
end | end | ||