「モジュール:MOS tunings」の版間の差分

Furcht968 (トーク | 投稿記録)
編集の要約なし
Furcht968 (トーク | 投稿記録)
編集の要約なし
 
(同じ利用者による、間の2版が非表示)
65行目: 65行目:
and step_ratios[2][1] == 2 and step_ratios[2][2] == 1
and step_ratios[2][1] == 2 and step_ratios[2][2] == 1
and step_ratios[3][1] == 3 and step_ratios[3][2] == 1 then
and step_ratios[3][1] == 3 and step_ratios[3][2] == 1 then
return "Simple Tunings", {{2, 1}, {3, 1}, {3, 2}}
return "簡易な調律", {{2, 1}, {3, 1}, {3, 2}}
end
end
end
end
78行目: 78行目:
step_ratio_range = tamnams.find_step_ratio_range_for_ratio_pair(lower_ratio, upper_ratio)
step_ratio_range = tamnams.find_step_ratio_range_for_ratio_pair(lower_ratio, upper_ratio)
if step_ratio_range ~= nil then
if step_ratio_range ~= nil then
step_ratio_range = p.capitalize_first(step_ratio_range) .. " Tunings"
step_ratio_range = p.capitalize_first(step_ratio_range) .. "調律"
else
else
step_ratio_range = "Tunings"
step_ratio_range = "調律"
end
end
elseif #step_ratios == 1 then
elseif #step_ratios == 1 then
step_ratio_range = tamnams.lookup_step_ratio(step_ratios[1])
step_ratio_range = tamnams.lookup_step_ratio(step_ratios[1])
if step_ratio_range ~= nil then
if step_ratio_range ~= nil then
step_ratio_range = p.capitalize_first(step_ratio_range) .. " Tuning"
step_ratio_range = p.capitalize_first(step_ratio_range) .. "調律"
else
else
step_ratio_range = string.format("%s/%s", step_ratios[1][1], step_ratios[1][2]) .. " Tuning"
step_ratio_range = string.format("%s/%s", step_ratios[1][1], step_ratios[1][2]) .. "調律"
end
end
else
else
step_ratio_range = "Tunings"
step_ratio_range = "調律"
end
end
170行目: 170行目:
result = result
result = result
.. "! rowspan=\"2\" class=\"unsortable\" | 音階の度数\n"
.. "! rowspan=\"2\" class=\"unsortable\" | 音階の度数\n"
.. "! rowspan=\"2\" class=\"unsortable\" | Abbrev.\n"
.. "! rowspan=\"2\" class=\"unsortable\" | 略記\n"
-- Headers for tunings; these span two cols
-- Headers for tunings; these span two cols
197行目: 197行目:
-- Second row of headers
-- Second row of headers
for i = 1, #step_ratios do
for i = 1, #step_ratios do
result = result .. "! style=\"border-right: none;\" class=\"unsortable\" | ステップ地\n"
result = result .. "! style=\"border-right: none;\" class=\"unsortable\" | ステップ値\n"
result = result .. "! style=\"border-left: none; text-align: right;\" | セント値\n"
result = result .. "! style=\"border-left: none; text-align: right;\" | セント値\n"
end
end
206行目: 206行目:
-- Add cells for the degree names
-- Add cells for the degree names
local degree_name  = tamnams.degree_quality(interval, input_mos, "sentence-case", mos_prefix)
local degree_name  = tamnams.degree_quality_japanese(interval, input_mos)
local degree_abbrev = tamnams.degree_quality(interval, input_mos, "abbrev"      , mos_abbrev)
local degree_abbrev = tamnams.degree_quality(interval, input_mos, "abbrev"      , mos_abbrev)