Module:MOS intro: Difference between revisions
m Rounding for period size in cents |
Simplified rothenprop; reduced precision to 1 DP; commented out descendant info for now |
||
| Line 211: | Line 211: | ||
-- How many decimal places to round to? | -- How many decimal places to round to? | ||
local round = | local round = 1 | ||
-- Build up intro text, starting with the scale sig and scale names | -- Build up intro text, starting with the scale sig and scale names | ||
| Line 236: | Line 236: | ||
-- TODO: add descendant info | -- TODO: add descendant info | ||
if equave_in_cents == 1200 and nL ~= 1 and nL + ns > 10 then | if equave_in_cents == 1200 and nL ~= 1 and nL + ns > 10 then | ||
intro = intro .. " " .. p.mos_descends_from(input_mos) | --intro = intro .. " " .. p.mos_descends_from(input_mos) | ||
end | end | ||
| Line 265: | Line 265: | ||
-- Rothenberg propriety (rothenprop) info | -- Rothenberg propriety (rothenprop) info | ||
if ns == 1 then | if ns == 1 then | ||
intro = intro .. " Scales of this form always | intro = intro .. " Scales of this form are always [[proper]] because there is only one small step." | ||
elseif ns / n == 1 then | elseif ns / n == 1 then | ||
intro = intro .. " Scales | intro = intro .. " Scales of this form are always [[proper]], if every period is the same, because there is only one small step per period." | ||
end | end | ||