「モジュール:MOS tuning spectrum」の版間の差分
ページの作成:「local mos = require("Module:MOS") local mediants = require("Module:Mediants") local tip = require("Module:Template input parse") local utils = require("Module:Utils") local yesno = require("Module:yesno") local getArgs = require("Module:Arguments").getArgs local p = {} -- TODO: -- - Add back old option from previous scale tree: toggle staggering of ratios. -- - (Low priority): Force-add comments that lie outside searched depth. If such -- ratios…」 |
編集の要約なし |
||
| (同じ利用者による、間の3版が非表示) | |||
| 84行目: | 84行目: | ||
-- Produce table header for the comments | -- Produce table header for the comments | ||
local comments_header_text = " | local comments_header_text = "備考" | ||
if small_steps == 1 then | if small_steps == 1 then | ||
comments_header_text = comments_header_text .. "<sup><abbr title=\"Every tuning produces a proper scale.\">(always proper)</abbr></sup>" | comments_header_text = comments_header_text .. "<sup><abbr title=\"Every tuning produces a proper scale.\">(always proper)</abbr></sup>" | ||
| 99行目: | 99行目: | ||
local result = {} | local result = {} | ||
table.insert(result, '{| class="wikitable center-all"') | table.insert(result, '{| class="wikitable center-all"') | ||
table.insert(result, '|+ style="font-size: 105%; white-space: nowrap;" | ' .. mos_as_string .. ' | table.insert(result, '|+ style="font-size: 105%; white-space: nowrap;" | ' .. mos_as_string .. 'の調律スペクトル') | ||
table.insert(result, '|-') | table.insert(result, '|-') | ||
table.insert(result, string.format('! rowspan="2" colspan="%d" | | table.insert(result, string.format('! rowspan="2" colspan="%d" | ジェネレーター<sup><abbr title="In steps of %s.">(%s)</abbr></sup>', deepest + 1, et_suffix, et_suffix)) | ||
table.insert(result, '! colspan="2" | セント') | table.insert(result, '! colspan="2" | セント') | ||
table.insert(result, '! colspan="2" | 比率 ') | table.insert(result, '! colspan="2" | 比率 ') | ||
table.insert(result, string.format('! rowspan="2" | %s', comments_header_text)) | table.insert(result, string.format('! rowspan="2" | %s', comments_header_text)) | ||
table.insert(result, '|-') | table.insert(result, '|-') | ||
table.insert(result, '! <abbr title="Chroma-positive generator"> | table.insert(result, '! <abbr title="Chroma-positive generator">上方</abbr>') | ||
table.insert(result, '! <abbr title="Chroma-negative generator"> | table.insert(result, '! <abbr title="Chroma-negative generator">下方</abbr>') | ||
table.insert(result, '! 全音半音比(L:s)') | table.insert(result, '! 全音半音比(L:s)') | ||
table.insert(result, '! 広さ') | table.insert(result, '! 広さ') | ||