Module:MOS intervals: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 89: | Line 89: | ||
-- non-period intervals. | -- non-period intervals. | ||
local is_nL_ns = input_mos.nL == input_mos.ns | local is_nL_ns = input_mos.nL == input_mos.ns | ||
for i = 1, steps_per_equave do | for i = 1, steps_per_equave - 1 do | ||
-- If i corresponds to the bright generator, then the large size is | -- If i corresponds to the bright generator, then the large size is | ||
-- perfect and the small size is diminished. | -- perfect and the small size is diminished. | ||
| Line 113: | Line 113: | ||
elseif i % steps_per_period == 0 and i ~= mossteps_per_equave then | elseif i % steps_per_period == 0 and i ~= mossteps_per_equave then | ||
result = result .. "|'''" .. i .. "-mosstep (period)'''\n" | result = result .. "|'''" .. i .. "-mosstep (period)'''\n" | ||
result = result .. "|" .. p.mos_interval_to_step_count_string(brightest_mode, i) .. "\n" | result = result .. "|" .. p.mos_interval_to_step_count_string(brightest_mode, i) .. "\n" | ||
result = result .. "|Perfect\n" | result = result .. "|Perfect\n" | ||
| Line 131: | Line 125: | ||
end | end | ||
end | end | ||
-- Manually add the last row of the table (this is for the equave) | |||
result = result .. "|'''" .. mossteps_per_equave .. "-mosstep (equave)'''\n" | |||
result = result .. "|" .. p.mos_interval_to_step_count_string(brightest_mode, mossteps_per_equave) .. "\n" | |||
result = result .. "|Perfect\n" | |||
result = result .. "|" .. p.mos_interval_to_step_count_string(darkest_mode, mossteps_per_equave) .. "\n" | |||
result = result .. "|Perfect\n" | |||
result = result .. "|}" | result = result .. "|}" | ||
return result | return result | ||
end | end | ||
return p | return p | ||