Module:Q-odd-limit intervals: Difference between revisions

ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
No edit summary
Line 237: Line 237:
local subgroup = table_filter(PRIME_LIST, limit)
local subgroup = table_filter(PRIME_LIST, limit)
local monzo_list = odd_limit_monzo_list_gen(limit)
local monzo_list = odd_limit_monzo_list_gen(limit)
local out_str = ""
local out_str
if frame.args["header"] ~= "none" then
if frame.args["header"] ~= "none" then
out_str = out_str .. "The following table shows how [[" .. limit .. "-odd-limit intervals]] are represented in " .. steps .. "edo. Prime harmonics are in '''bold'''"
out_str = "The following "
if apx == "direct" and apx == "val" then
out_str = out_str .. "table shows"
else
out_str = out_str .. "tables show"
end
out_str = out_str .. " how [[" .. limit .. "-odd-limit intervals]] are represented in " .. steps .. "edo. Prime harmonics are in '''bold'''"
if constcy >= limit then
if constcy >= limit then
out_str = out_str .. ".\n\nAs " .. steps .. "edo is consistent in the " .. limit .. "-odd-limit, the mappings by direct approximation and through the patent val are identical."
out_str = out_str .. ".\n\nAs " .. steps .. "edo is consistent in the " .. limit .. "-odd-limit, the mappings by direct approximation and through the patent val are identical."
Line 252: Line 258:
out_str = out_str .. "Note that since the [[cent]] was defined in terms of 12edo, the absolute and relative errors for 12edo are identical.\n\n"
out_str = out_str .. "Note that since the [[cent]] was defined in terms of 12edo, the absolute and relative errors for 12edo are identical.\n\n"
end
end
else
out_str = ""
end
end
out_str = out_str .. approx(steps, subgroup, monzo_list, title, apx)
out_str = out_str .. approx(steps, subgroup, monzo_list, title, apx)