Module:MOS mode degrees: Difference between revisions
ArrowHead294 (talk | contribs) No edit summary |
m Comments; renamed function names |
||
| Line 566: | Line 566: | ||
-- Create a table of a mos's degrees | -- Create a table of a mos's degrees | ||
function p. | function p._mos_mode_degrees(input_mos, mos_prefix, mode_names, use_default_mode_names) | ||
local input_mos = input_mos or mos.new(5, 2) | local input_mos = input_mos or mos.new(5, 2) | ||
local mos_prefix = mos_prefix or "mos" | local mos_prefix = mos_prefix or "mos" | ||
| Line 654: | Line 654: | ||
-- Create a table of a modmos's degrees | -- Create a table of a modmos's degrees | ||
function p. | function p._modmos_mode_degrees(input_mos, mos_prefix, step_pattern, mode_names, use_default_mode_names) | ||
local input_mos = input_mos or mos.new(5, 2) | local input_mos = input_mos or mos.new(5, 2) | ||
local mos_prefix = mos_prefix or "mos" | local mos_prefix = mos_prefix or "mos" | ||
| Line 745: | Line 745: | ||
-- Function to be called as part of a template | -- Function to be called as part of a template | ||
function p. | -- Note that there are two "main" functions: one for mosses, one for modmosses | ||
-- Whichever is called is based on the step pattern entered | |||
function p.mos_mode_degrees(frame) | |||
-- Default param for input mos is 5L 2s | -- Default param for input mos is 5L 2s | ||
local input_mos = mos.parse(frame.args['Scale Signature']) or mos.new(2, 5, 2) | local input_mos = mos.parse(frame.args['Scale Signature']) or mos.new(2, 5, 2) | ||