Module:MOS degrees: Difference between revisions
m Clarified comments |
Any degrees that correspond to the period are now bold |
||
| Line 309: | Line 309: | ||
-- therefore strings of size 1) | -- therefore strings of size 1) | ||
local is_nominal = string.len(degrees_and_note_names[i][2]) == 1 | local is_nominal = string.len(degrees_and_note_names[i][2]) == 1 | ||
-- Is the row for a period? | |||
local is_period = steps_and_cents[i][1] % mossteps_per_period == 0 | |||
-- Add new row, with coloring | -- Add new row, with coloring | ||
| Line 318: | Line 321: | ||
-- Add cells for degree and note name | -- Add cells for degree and note name | ||
result = result .. "| " .. degrees_and_note_names[i][1] .. "\n" -- Degree name | -- Make any nominals that correspond to the period bold | ||
if is_period then | |||
result = result .. "| " .. degrees_and_note_names[i][1] .. "\n" -- Degree name | |||
else | |||
result = result .. "| '''" .. degrees_and_note_names[i][1] .. "'''\n" -- Degree name | |||
end | |||
result = result .. "| " .. degrees_and_note_names[i][2] .. "\n" -- Note name | result = result .. "| " .. degrees_and_note_names[i][2] .. "\n" -- Note name | ||