「モジュール:MOS intro」の版間の差分
編集の要約なし |
編集の要約なし |
||
| 51行目: | 51行目: | ||
-- Get all the mos's names, starting with tamnams names if applicable | -- Get all the mos's names, starting with tamnams names if applicable | ||
local tamnams_names_list = p.mos_intro_list_names(tamnams_name, " | local tamnams_names_list = p.mos_intro_list_names(tamnams_name, "や、") | ||
local other_names_list = p.mos_intro_list_names(other_names, " | local other_names_list = p.mos_intro_list_names(other_names, "や、") | ||
-- Construct the sentence | -- Construct the sentence | ||
| 60行目: | 60行目: | ||
if tamnams_names_list ~= "" and other_names_list ~= "" then | if tamnams_names_list ~= "" and other_names_list ~= "" then | ||
-- There are both tamnams names and alternate names | -- There are both tamnams names and alternate names | ||
sentence = sentence .. string.format("は、{{En仮リンク|TAMNAMS}}においては% | sentence = sentence .. string.format("は、{{En仮リンク|TAMNAMS}}においては%sと呼ばれ、他に%sといった呼称が存在する。この音階は", tamnams_names_list, other_names_list) | ||
elseif tamnams_names_list ~= "" and other_names_list == "" then | elseif tamnams_names_list ~= "" and other_names_list == "" then | ||
-- There are only tamnams names | -- There are only tamnams names | ||
sentence = sentence .. string.format("は、{{En仮リンク|TAMNAMS}}において% | sentence = sentence .. string.format("は、{{En仮リンク|TAMNAMS}}において%sと呼ばれる。この音階は", tamnams_names_list) | ||
elseif tamnams_names_list == "" and other_names_list ~= "" then | elseif tamnams_names_list == "" and other_names_list ~= "" then | ||
-- There are no tamnams names but there are alternate names | -- There are no tamnams names but there are alternate names | ||
sentence = sentence .. string.format("は、% | sentence = sentence .. string.format("は、%sと呼ばれる。この音階は", other_names_list) | ||
end | end | ||
| 256行目: | 256行目: | ||
-- Add equave equivalence | -- Add equave equivalence | ||
if rat.eq(input_mos.equave, rat.new(2)) then | if rat.eq(input_mos.equave, rat.new(2)) then | ||
intro = intro .. "[[オクターブ]]を周期とする[[ | intro = intro .. "[[オクターブ]]を周期とする[[MOSスケール]]である。" | ||
elseif rat.eq(input_mos.equave, rat.new(3)) then | elseif rat.eq(input_mos.equave, rat.new(3)) then | ||
intro = intro .. "[[トリターブ]]を周期とする[ | intro = intro .. "[[トリターブ]]を周期とする[MOSスケール]]である。" | ||
elseif rat.eq(input_mos.equave, rat.new(3,2)) then | elseif rat.eq(input_mos.equave, rat.new(3,2)) then | ||
intro = intro .. "[[3/2]]を周期とする[[ | intro = intro .. "[[3/2]]を周期とする[[MOSスケール]]である。" | ||
else | else | ||
intro = intro .. string.format("%sを周期とする[[ | intro = intro .. string.format("%sを周期とする[[MOSスケール]]である。", equave_as_ratio) | ||
end | end | ||
| 292行目: | 292行目: | ||
local dark_gen_max_r = tostring(utils._round_dec(dark_gen_max, round)) | local dark_gen_max_r = tostring(utils._round_dec(dark_gen_max, round)) | ||
intro = intro .. string.format(" | intro = intro .. string.format("%s{{cent}}から%s{{cent}}、あるいは%s{{cent}}から%s{{cent}}までの[[ジェネレーター]]を用いて作られる。", bright_gen_min_r, bright_gen_max_r, dark_gen_min_r, dark_gen_max_r) | ||
-- Rothenberg propriety (rothenprop) info | -- Rothenberg propriety (rothenprop) info | ||