Module:MOS gamut: Difference between revisions
Fixed error with genchain lengths, since mos notation function was bugfixed |
Capitalized keys (mossteps and chromas) in accordance to changes to mos notation module |
||
| Line 125: | Line 125: | ||
-- Convert the notationally agnostic form into a form that uses given notation | -- Convert the notationally agnostic form into a form that uses given notation | ||
local note = ascending_genchain[j][i] | local note = ascending_genchain[j][i] | ||
local note_symbol = string.sub(note_symbols, note[' | local note_symbol = string.sub(note_symbols, note['Mossteps'] + 1, note['Mossteps'] + 1) | ||
local chroma_count = note[' | local chroma_count = note['Chromas'] | ||
local note_name = note_symbol .. string.rep(chroma_plus_symbol, chroma_count) | local note_name = note_symbol .. string.rep(chroma_plus_symbol, chroma_count) | ||
| Line 138: | Line 138: | ||
-- Convert the notationally agnostic form into a form that uses given notation | -- Convert the notationally agnostic form into a form that uses given notation | ||
local note = descending_genchain[j][i] | local note = descending_genchain[j][i] | ||
local note_symbol = string.sub(note_symbols, note[' | local note_symbol = string.sub(note_symbols, note['Mossteps'] + 1, note['Mossteps'] + 1) | ||
local chroma_count = note[' | local chroma_count = note['Chromas'] * -1 | ||
local note_name = note_symbol .. string.rep(chroma_minus_symbol, chroma_count) | local note_name = note_symbol .. string.rep(chroma_minus_symbol, chroma_count) | ||