「モジュール:TAMNAMS」の版間の差分
編集の要約なし |
編集の要約なし |
||
| (同じ利用者による、間の4版が非表示) | |||
| 85行目: | 85行目: | ||
-- Lookup table for tamnams names within the range of 6-10 steps | -- Lookup table for tamnams names within the range of 6-10 steps | ||
p.mos_names = { | p.mos_names = { | ||
["1L 1s"] = " | ["1L 1s"] = "Monowood", | ||
["2L 2s"] = " | ["2L 2s"] = "Biwood", | ||
["1L 5s"] = " | ["1L 5s"] = "Antimachinoid", | ||
["2L 4s"] = " | ["2L 4s"] = "Malic", | ||
["3L 3s"] = " | ["3L 3s"] = "Triwood", | ||
["4L 2s"] = " | ["4L 2s"] = "Citric", | ||
["5L 1s"] = " | ["5L 1s"] = "Machinoid", | ||
["1L 6s"] = " | ["1L 6s"] = "Onyx", | ||
["2L 5s"] = " | ["2L 5s"] = "Antidiatonic", | ||
["3L 4s"] = " | ["3L 4s"] = "Mosh", | ||
["4L 3s"] = " | ["4L 3s"] = "Smitonic", | ||
["5L 2s"] = " | ["5L 2s"] = "Diatonic", | ||
["6L 1s"] = " | ["6L 1s"] = "Archaeotonic", | ||
["1L 7s"] = " | ["1L 7s"] = "Antipine", | ||
["2L 6s"] = " | ["2L 6s"] = "Subaric", | ||
["3L 5s"] = " | ["3L 5s"] = "Checkertonic", | ||
["4L 4s"] = " | ["4L 4s"] = "Tetrawood", | ||
["5L 3s"] = " | ["5L 3s"] = "Oneirotonic", | ||
["6L 2s"] = " | ["6L 2s"] = "Ekic", | ||
["7L 1s"] = " | ["7L 1s"] = "Pine", | ||
["1L 8s"] = " | ["1L 8s"] = "Antisubneutralic", | ||
["2L 7s"] = " | ["2L 7s"] = "Balzano", | ||
["3L 6s"] = " | ["3L 6s"] = "Tcherepnin", | ||
["4L 5s"] = " | ["4L 5s"] = "Gramitonic", | ||
["5L 4s"] = " | ["5L 4s"] = "Semiquartal", | ||
["6L 3s"] = " | ["6L 3s"] = "Hyrulic", | ||
["7L 2s"] = " | ["7L 2s"] = "Armotonic", | ||
["8L 1s"] = " | ["8L 1s"] = "Subneutralic", | ||
["1L 9s"] = " | ["1L 9s"] = "Antisinatonic", | ||
["2L 8s"] = " | ["2L 8s"] = "Jaric", | ||
["3L 7s"] = " | ["3L 7s"] = "Sephiroid", | ||
["4L 6s"] = " | ["4L 6s"] = "Lime", | ||
["5L 5s"] = " | ["5L 5s"] = "Pentawood", | ||
["6L 4s"] = " | ["6L 4s"] = "Lemon", | ||
["7L 3s"] = " | ["7L 3s"] = "Dicoid", | ||
["8L 2s"] = " | ["8L 2s"] = "Taric", | ||
["9L 1s"] = " | ["9L 1s"] = "Sinatonic" | ||
} | } | ||
| 990行目: | 990行目: | ||
-- 日本語対応用 | -- 日本語対応用 | ||
function p.interval_quality_japanese(interval, input_mos) | |||
-- Get the step count of the interval. The sum of L's and s's will always | |||
-- determine what k-mosstep the interval is. | |||
local step_count = mos.interval_step_count(interval) | |||
-- Decode the quality | |||
local quality = p.decode_quality_japanese(interval, input_mos, abbrev_format) | |||
return string.format("%s%d度", quality, step_count) | |||
end | |||
function p.degree_quality_japanese(interval, input_mos) | function p.degree_quality_japanese(interval, input_mos) | ||
-- Get the step count of the interval. The sum of L's and s's will always | -- Get the step count of the interval. The sum of L's and s's will always | ||
| 996行目: | 1,009行目: | ||
-- Decode the quality | -- Decode the quality | ||
local quality = p. | local quality = p.decode_quality_japanese(interval, input_mos) | ||
return string.format("%s%d度", quality, step_count) | return string.format("%s%d度", quality, step_count) | ||
end | end | ||