「モジュール:Q-odd-limit intervals」の版間の差分

Tessyrrh1016 (トーク | 投稿記録)
編集の要約なし
Tessyrrh1016 (トーク | 投稿記録)
編集の要約なし
 
(同じ利用者による、間の8版が非表示)
183行目: 183行目:
.. "|+ style=\"font-size: 105%; white-space: nowrap;\" | "
.. "|+ style=\"font-size: 105%; white-space: nowrap;\" | "
local t_head_1 = "|-\n"
local t_head_1 = "|-\n"
.. "! class=\"unsortable\" | Interval and complement !! Error (abs, [[Cent|¢]]) !! Error (rel, [[Relative cent|%]])\n"
.. "! class=\"unsortable\" | 音程と補音程 !! 誤差 (絶対, [[セント|¢]]) !! 誤差 (相対, [[相対セント|%]])\n"
local t_foot = "\n|}"
local t_foot = "\n|}"
if tag ~= "none" then
if tag ~= "none" then
tag_direct = " (direct approximation, even if inconsistent)"
tag_direct = "(直接近似, 一貫性の無いものも含む)"
tag_val = " (patent val mapping)"
tag_val = "(パテントヴァルによるマッピング)"
else
else
tag_direct = ""
tag_direct = ""
219行目: 219行目:
if not utils.value_provided(title) then
if not utils.value_provided(title) then
title = string.format("%d-odd-limit intervals in " .. steps .. "edo", limit)
title = string.format(steps .. "平均律内の" .. "%d奇数リミット音程", limit)
end
end
229行目: 229行目:
apx = "val"
apx = "val"
end
end
out_str = "The following "
out_str = "以下の表は、"
.. string.gsub("table show", "()", {[((apx == "direct" or apx == "val") and {11} or {6})[1]] = "s"})
.. steps .. "平均律で" .. limit .. "奇数リミット音程がどのように表されるかを示している。素数倍音は'''太字で'''"
.. " how [[" .. limit .. "-odd-limit]] intervals are represented in "
.. ((constcy >= limit) and {"示す。\n\n" .. steps .. "平均律は" .. limit .. "奇数リミットにおいて[[一貫性|一貫的]]であるため、直接近似とパテントヴァルを介したマッピングが一致する。"} or {"、非[[一貫性|一貫的]]な音程は''斜体''で示す。"})[1]
.. steps .. "edo. Prime harmonics are in '''bold'''"
.. ((constcy >= limit) and {".\n\nAs " .. steps .. "edo is consistent in the " .. limit .. "-odd-limit, the mappings by direct approximation and through the patent val are identical."} or {"; inconsistent intervals are in ''italics''."})[1]
.. "\n\n"
.. "\n\n"
-- out_str = "The following "
-- .. string.gsub("table show", "()", {[((apx == "direct" or apx == "val") and {11} or {6})[1]] = "s"})
-- .. " how [[" .. limit .. "-odd-limit]] intervals are represented in "
-- .. steps .. "edo. Prime harmonics are in '''bold'''"
-- .. ((constcy >= limit) and {".\n\nAs " .. steps .. "edo is consistent in the " .. limit .. "-odd-limit, the mappings by direct approximation and through the patent val are identical."} or {"; inconsistent intervals are in ''italics''."})[1]
-- .. "\n\n"
if constcy >= limit then
if constcy >= limit then
tag = "none"
tag = "none"
242行目: 246行目:
end
end
if steps == 12 then
if steps == 12 then
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"
out_str = out_str .. "[[セント]]は12平均律をもとに定義されているので、12平均律の絶対誤差と相対誤差は同じであることに注意。\n\n"
end
end
else
else