Module:MOS gamut: Difference between revisions
No edit summary |
No edit summary |
||
| Line 384: | Line 384: | ||
-- Add the rows | -- Add the rows | ||
local step_ratio_gcd = rat.gcd(step_ratio[1], step_ratio[2]) -- GCD of the sizes of L and s, in case L:s isn't simplified | local step_ratio_gcd = rat.gcd(step_ratio[1], step_ratio[2]) -- GCD of the sizes of L and s, in case L:s isn't simplified | ||
-- If note name string is one character, it's a natural so the row is white | -- If note name string is one character, it's a natural so the row is white | ||
| Line 395: | Line 394: | ||
note_name = note_name:gsub("/", "\n") | note_name = note_name:gsub("/", "\n") | ||
result = result .. "|-" | |||
if string.len(note_name) == 1 then | if string.len(note_name) == 1 then | ||
result = result .. '|' .. step_ratio_gcd * (i-1) .. "||" .. note_name .. " \n\n" | result = result .. '|' .. step_ratio_gcd * (i-1) .. "||" .. note_name .. " \n\n" | ||