Module:MOS gamut: Difference between revisions
m Corrected UDP calculation |
mNo edit summary |
||
| Line 5: | Line 5: | ||
local p = {} | local p = {} | ||
-- Helper function for creating a genchain, a | -- Helper function for creating a genchain, or specifically, a nominal-accidental chain. | ||
-- | -- This can only work in one direction at a time, so it's necessary to call this twice, | ||
-- once for each direction (going up by the bright generator, or down). One genchain | |||
-- | -- is generated for each period, so this returns an array of arrays. | ||
-- | |||
-- This genchain is agnostic of notation, and only denotes the mossteps needed to reach | -- This genchain is agnostic of notation, and only denotes the mossteps needed to reach | ||
-- a note, followed by the number of chromas. For example, F# is reached going up 3 | -- a note, followed by the number of chromas. For example, F# is reached going up 3 | ||
-- mossteps and adding one chroma; Fb is the same except subtracting one chroma. | -- mossteps and adding one chroma; Fb is the same except subtracting one chroma. | ||
-- Specific notation is needed to interpret this into note names. | |||
-- Parameters: | -- Parameters: | ||
-- - input_mos - the mos itself represented as a data structure from Module:MOS | -- - input_mos - the mos itself represented as a data structure from Module:MOS | ||