Module:MOS intro: Difference between revisions

Ganaram inukshuk (talk | contribs)
m Rounding for period size in cents
Ganaram inukshuk (talk | contribs)
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 = 3
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 exhibit [[proper|Rothenberg propriety]] because there is only one small step."
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 in which every period is the same sequence of steps always exhibit [[proper|Rothenberg propriety]] because there is only one small step per period."
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