「モジュール:MOS intro」の版間の差分
編集の要約なし |
編集の要約なし タグ: モバイル編集 モバイルウェブ編集 |
||
| (同じ利用者による、間の6版が非表示) | |||
| 177行目: | 177行目: | ||
local descendant_text = "" | local descendant_text = "" | ||
if generations == 1 then | if generations == 1 then | ||
descendant_text = string.format("% | descendant_text = string.format("%sは、[[%s]]の親MOSであり", mos.as_string(input_mos), mos.as_string(ancestor_mos)) | ||
elseif generations == 2 then | elseif generations == 2 then | ||
descendant_text = string.format("% | descendant_text = string.format("%sは、[[%s]]の祖MOSであり", mos.as_string(input_mos), mos.as_string(ancestor_mos)) | ||
elseif generations == 3 then | elseif generations == 3 then | ||
descendant_text = string.format("% | descendant_text = string.format("%sは、[[%s]]の曽祖MOSであり", mos.as_string(input_mos), mos.as_string(ancestor_mos)) | ||
else | else | ||
descendant_text = string.format("% | descendant_text = string.format("%sは、[[%s]]と近親であり", mos.as_string(input_mos), mos.as_string(ancestor_mos)) | ||
end | end | ||
| 194行目: | 194行目: | ||
--end | --end | ||
descendant_text = descendant_text .. string.format(" | descendant_text = descendant_text .. string.format("、%d音分増える。", input_mos.nL + input_mos.ns - ancestor_mos.nL - ancestor_mos.ns) | ||
return descendant_text | return descendant_text | ||
| 230行目: | 230行目: | ||
-- This is done through the aid of a helper function | -- This is done through the aid of a helper function | ||
local intro = p.mos_intro_names(scale_sig, tamnams_pasred, other_parsed) | local intro = p.mos_intro_names(scale_sig, tamnams_pasred, other_parsed) | ||
-- Add step counts | -- Add step counts | ||
| 263行目: | 253行目: | ||
else | else | ||
intro = intro .. string.format("%sを周期とする[[MOSスケール]]である。", equave_as_ratio) | intro = intro .. string.format("%sを周期とする[[MOSスケール]]である。", equave_as_ratio) | ||
end | |||
-- Add repetition | |||
if n == 1 then | |||
intro = intro .. (equave_in_cents == 1200 and "[[オクターブ]]" or string.format("[[%s]] (%.1f{{cent}})の音程", equave_as_ratio, equave_in_cents, round)) .. "の中で" | |||
else | |||
intro = intro .. string.format("この音階は、%d個の広い音程と%d個の狭い音程からなる繰り返しが", nL/n, ns/n) | |||
intro = intro .. string.format("%.1f{{cent}}ごとに、つまり", period_in_cents) | |||
intro = intro .. (equave_in_cents == 1200 and "[[オクターブ]]" or string.format("[[%s]] (%.1f{{cent}})の音程", equave_as_ratio, equave_in_cents, round)) .. string.format("につき%d回繰り返される。", n) | |||
end | end | ||
| 296行目: | 296行目: | ||
-- Rothenberg propriety (rothenprop) info | -- Rothenberg propriety (rothenprop) info | ||
if ns == 1 then | if ns == 1 then | ||
intro = intro .. " | intro = intro .. "この形式の音階は、狭い音程が1つしかないため、常に{{En仮リンク|厳密に適正|Rothenberg propriety}}となる。" | ||
elseif ns / n == 1 then | elseif ns / n == 1 then | ||
intro = intro .. " | intro = intro .. "全ての周期が等しく、真にMOSである場合は、1周期につき狭い音程が1つしかないため、{{En仮リンク|厳密に適正|Rothenberg propriety}}である。" | ||
end | end | ||