Module:MOS intervals: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
Added (wip) intervals description |
||
| Line 128: | Line 128: | ||
.. "# <span id=\"mosstep-3\">Abbreviations can be further shortened to 'ms' if context allows.</span>\n" | .. "# <span id=\"mosstep-3\">Abbreviations can be further shortened to 'ms' if context allows.</span>\n" | ||
.. "</span>" | .. "</span>" | ||
return result | |||
end | |||
function p.mos_intervals_description(input_mos) | |||
local input_mos = input_mos or mos.new(5,2) | |||
local tamnams_name = tamnams.lookup_name(input_mos) | |||
local scalesig = mos.as_string(input_mos) | |||
local scalesig_and_name = tamnams_name == nil and scalesig or string.format("%s (%s)", tamnams_name, scalesig) | |||
local result = string.format("The intervals of %s are named after the number of mossteps (L and s) subtended.", scalesig_and_name) | |||
result = result | |||
.. string.format(" Interval varieties are named major and minor, or augmented, perfect, and diminished for the generators of %s.", tamnams_name) | |||
return result | return result | ||
end | end | ||