Module:MOS tuning spectrum: Difference between revisions

Ganaram inukshuk (talk | contribs)
move step ratio simplification further up
Ganaram inukshuk (talk | contribs)
m bugfix
Line 133: Line 133:
-- Cell for comment
-- Cell for comment
-- Default comments are on their own line before custom comments
-- Default comments are on their own line before custom comments
local key = large_step / gcd .. "/" .. small_step / gcd -- The step ratio is (literally and figuratively) the key to add comments!
local key = step_ratio[1] .. "/" .. step_ratio[2] -- The step ratio is (literally and figuratively) the key to add comments!
local comment = ""
local comment = ""
local default_comment = default_comments[key] or ""
local default_comment = default_comments[key] or ""