「モジュール:MOS intro」の版間の差分
編集の要約なし |
編集の要約なし |
||
| 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個の広い音程と", nL/n) | |||
intro = intro .. string.format("%d個の狭い音程からなる繰り返しが", 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 | ||