Module:MOS intro: Difference between revisions

Ganaram inukshuk (talk | contribs)
m Equave rounding bugfix
Ganaram inukshuk (talk | contribs)
Commented out step ratio range, replaced with "expands on ancestor scale by n notes"
Line 114: Line 114:
local ancestor_mos, lg_chunk, sm_chunk, generations = p.find_mos_ancestor(input_mos)
local ancestor_mos, lg_chunk, sm_chunk, generations = p.find_mos_ancestor(input_mos)
--[[
-- Calculate the range of step ratios the ancestor should have
-- Calculate the range of step ratios the ancestor should have
-- Sort ratios by hardness
-- Sort ratios by hardness
Line 164: Line 165:
named_range = "ultrahard"
named_range = "ultrahard"
end
end
]]--
local descendant_text = ""
local descendant_text = ""
Line 176: Line 178:
end
end
if named_range == "" then
--if named_range == "" then
--descendant_text = descendant_text .. string.format(", produced by such scales with a [[step ratio]] within the range of %s.", step_ratio_range)
-- descendant_text = descendant_text .. string.format(", produced by such scales with a [[step ratio]] within the range of %s.", step_ratio_range)
descendant_text = descendant_text .. "."
-- descendant_text = descendant_text .. "."
else
--else
--descendant_text = descendant_text .. string.format(", produced by such scales with a [[step ratio]] within the %s range (%s).", named_range, step_ratio_range)
-- descendant_text = descendant_text .. string.format(", produced by such scales with a [[step ratio]] within the %s range (%s).", named_range, step_ratio_range)
descendant_text = descendant_text .. "."
-- descendant_text = descendant_text .. "."
end
--end
descendant_text = descendant_text .. string.format(", expanding it by %d notes.", input_mos.nL + input_mos.ns - ancestor_mos.nL - ancestor_mos.ns)
return descendant_text
return descendant_text