Module:TAMNAMS: Difference between revisions
m Fixed dark gen small size being major when it should be perfect |
m Added default param to decode funciton |
||
| Line 378: | Line 378: | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- Given an interval vector for a mos, produce the name for that interval. | |||
function p.interval_quality(interval, input_mos, abbrev_format, mos_prefix) | function p.interval_quality(interval, input_mos, abbrev_format, mos_prefix) | ||
local abbrev_format = abbrev_format or "none" | local abbrev_format = abbrev_format or "none" | ||
| Line 398: | Line 399: | ||
end | end | ||
-- Given an interval vector for a mos, produce the name for the scale degree | |||
-- reached by going up that interval, from the root. (This is identical to the | |||
-- previous function, except it uses "degree" instead of "step".) | |||
function p.degree_quality(interval, input_mos, abbrev_format, mos_prefix) | function p.degree_quality(interval, input_mos, abbrev_format, mos_prefix) | ||
local abbrev_format = abbrev_format or "none" | local abbrev_format = abbrev_format or "none" | ||
| Line 436: | Line 440: | ||
-- ...| . . . | . . . | . . . | -- ...| . . . | . . . | . . . | ||
function p.decode_quality(interval, input_mos, abbrev_format) | function p.decode_quality(interval, input_mos, abbrev_format) | ||
local abbrev_format = abbrev_format or "none" -- Default is no abbreviation | |||
-- Normalize the interval so negative values aren't being used. | -- Normalize the interval so negative values aren't being used. | ||