「モジュール:Infobox ET」の版間の差分
ページの作成:「local p = {} local utils = require("Module:Utils") local rat = require("Module:Rational") local limits = require("Module:Limits") local ET = require("Module:ET") local in…」 |
編集の要約なし |
||
| 124行目: | 124行目: | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "素因数分解", | ||
prime_factorization, | prime_factorization, | ||
}) | }) | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "音程", | ||
utils._round(step_size, 6) .. "¢" .. note_12edo .. " ", | utils._round(step_size, 6) .. "¢" .. note_12edo .. " ", | ||
}) | }) | ||
| 135行目: | 135行目: | ||
if not rat.eq(et.equave, 2) then | if not rat.eq(et.equave, 2) then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "オクターブ", | ||
approximation(et, 2), | approximation(et, 2), | ||
}) | }) | ||
if not rat.eq(et.equave, 3) then | if not rat.eq(et.equave, 3) then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "トリターブ", | ||
approximation(et, 3), | approximation(et, 3), | ||
}) | }) | ||
| 146行目: | 146行目: | ||
else | else | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "完全五度", | ||
approximation(et, 3 / 2), | approximation(et, 3 / 2), | ||
}) | }) | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "半音比 (A1:m2)", | ||
A1 .. ":" .. m2 .. " (" .. A1_cents .. "¢ : " .. m2_cents .. "¢)", | A1 .. ":" .. m2 .. " (" .. A1_cents .. "¢ : " .. m2_cents .. "¢)", | ||
}) | }) | ||
if dual_fifth and et.size > 0 then | if dual_fifth and et.size > 0 then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "シャープ五度", | ||
approximation(et, 3 / 2, 1), | approximation(et, 3 / 2, 1), | ||
}) | }) | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "フラット五度", | ||
approximation(et, 3 / 2, -1), | approximation(et, 3 / 2, -1), | ||
}) | }) | ||
| 165行目: | 165行目: | ||
local flat = ET.approximate(et, 3 / 2, -1) | local flat = ET.approximate(et, 3 / 2, -1) | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "長二度", | ||
approximation(et, 9 / 8, 0, sharp + flat - octave), | approximation(et, 9 / 8, 0, sharp + flat - octave), | ||
}) | }) | ||
| 184行目: | 184行目: | ||
if consistency ~= nil then | if consistency ~= nil then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "一貫限度", | ||
consistency, | consistency, | ||
}) | }) | ||
| 197行目: | 197行目: | ||
if distinct_consistency ~= nil then | if distinct_consistency ~= nil then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "厳密一貫限度", | ||
distinct_consistency, | distinct_consistency, | ||
}) | }) | ||
| 226行目: | 226行目: | ||
end | end | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
" | "特異性", | ||
'<div style="max-width: 300px;">' .. text .. "</div>", | '<div style="max-width: 300px;">' .. text .. "</div>", | ||
}) | }) | ||