Module:TAMNAMS: Difference between revisions
Added encoder function for mossteps |
m Added comments for proposed encoding |
||
| Line 281: | Line 281: | ||
-- - A: an augmented step; a large step plus a chroma, or 2L + s | -- - A: an augmented step; a large step plus a chroma, or 2L + s | ||
-- - d: a diminished step, a small step minus a chroma, or -L + 2s | -- - d: a diminished step, a small step minus a chroma, or -L + 2s | ||
-- Proposed encoding (work-in-progress): | |||
-- 2 = Large size plus 2 chromas, or 2x-aug size for period intervals | |||
-- 1 = Large size plus 1 chroma, or augmented size for period intervals | |||
-- 0 = Large size, or perfect size for period intervals | |||
-- -1 = Small size, or diminished size for period intervals | |||
-- -2 = Small size minus 1 chroma, or 2x-dim for period intervals | |||
-- Encoding can continue for any number of chromas; only [-2, 2] is shown for | |||
-- demonstration. | |||
-- Large/small size is translated to major/minor, or aug/perf/dim based on what | |||
-- interval it is (nonperfectable vs dark gen vs bright gen). | |||
-- Encoding can be adapted for use with mos notation (EG, diamond-mos), where | |||
-- the values denote how many chromas are added/subtracted. | |||
function p.encode_mosstep_sequence_to_vector(input_mos, mosstep_sequence) | function p.encode_mosstep_sequence_to_vector(input_mos, mosstep_sequence) | ||
local input_mos = input_mos or mos.new(5, 2) | local input_mos = input_mos or mos.new(5, 2) | ||