Module:ED intro: Difference between revisions

Ganaram inukshuk (talk | contribs)
m Removed equal link from "equal temperament"
Ganaram inukshuk (talk | contribs)
m Comments
Line 4: Line 4:
local p = {}
local p = {}


-- Notes on supported types:
-- Module for creating an intro for an equal-division tuning.
-- - Supported types: edo, edt, edf, edh, edr, edc (for octave, tritave/twelfth,
-- Supported types: edo, edt, edf, edh, edr, edc (for octave, tritave/twelfth,
--   fifth, arbitrary harmonic h, arbitrary ratio r, and arbitrary cents c).
-- fifth, arbitrary harmonic h, arbitrary ratio r, and arbitrary cents c).
-- - Note that EDs of irrational numbers (edir) aren't supported since some of
 
--   these constants have names (e, pi, phi) or are formatted in special ways
-- Notes:
--  (sqrt(2)). These aren't very common and can be expressed as edc's if need
-- - Edo and edt are technically edh's, and edf an edr; these are their own
--   be (edsqrt(2) is ed600c), or as an ed of a non-integer number (ed1.41421).
--  types because their intros have specific wording.
-- - Also note that, under harmontonic tuning, edc and edr are the same as ASp
-- - Edh is a special case of edr, where the ratio is h/1.
--  and APSp (ambitonal sequence and arithmetic pitch sequence); these were
-- - Under harmonotonic tuning, edc and edr are also called ASp and APSp
--  recently reclassified as edr and edc, however.
--  (ambitonal sequence and arithmetic pitch sequence, respectively). These
--  were formerly called equal-step tunings but were reclassified as 1ed.
-- - Equal divisions of irrational constants (such as pi and e) are not very
--  common, but can be denoted as equal divisions of arbitrary cent values if
--  needed.


-- Parse ed function
-- Parse ed function
Line 131: Line 135:
end
end
-- Produce a map of text to replace
-- Produce a table of key-value pairs of text to replace
-- - ''k'': number of steps in ed
-- - ''k'': number of steps in ed
-- - ''s'': size of a step
-- - ''s'': size of a step