Module:MOS degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
Added support for up to three step ratios
Ganaram inukshuk (talk | contribs)
No edit summary
Line 340: Line 340:
-- Add this once for every step ratio to be represented
-- Add this once for every step ratio to be represented
result = result .. "! Steps\n! Cents\n"
result = result .. string.rep("! Steps\n! Cents\n", #step_ratios)
-- Add each row, containing a degree, note name, step count, and cent value
-- Add each row, containing a degree, note name, step count, and cent value