Module:Step vis: Difference between revisions
Jump to navigation
Jump to search
Created page with "local mosinedo = require("Module:MOS in EDO") local p = {} -- Wrapper function for step visualization -- Calls the step visualization function from the mosinedo template func..." |
No edit summary |
||
| Line 1: | Line 1: | ||
local mosinedo = require("Module:MOS in EDO") | local mosinedo = require("Module:MOS in EDO") | ||
local tip = require("Module:Template input parse") | |||
local p = {} | local p = {} | ||
| Line 5: | Line 6: | ||
-- Calls the step visualization function from the mosinedo template | -- Calls the step visualization function from the mosinedo template | ||
function p.step_vis_frame(frame) | function p.step_vis_frame(frame) | ||
local step_pattern = frame.args("Step Pattern") | local step_pattern = tip.parse_entries(frame.args("Step Pattern"), " ") | ||
return mosinedo.step_pattern(step_pattern) | return mosinedo.step_pattern(step_pattern) | ||
end | end | ||
return p | return p | ||
Revision as of 04:52, 11 December 2023
- This module may be invoked by templates using its corresponding template Template:Step vis, or used directly from other modules.
Generates a visual representation of a scale based on predefined step sizes.
| Introspection summary for Module:Step vis | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||||||
No function descriptions were provided. The Lua code may have further information.
local mosinedo = require("Module:MOS in EDO")
local tip = require("Module:Template input parse")
local p = {}
-- Wrapper function for step visualization
-- Calls the step visualization function from the mosinedo template
function p.step_vis_frame(frame)
local step_pattern = tip.parse_entries(frame.args("Step Pattern"), " ")
return mosinedo.step_pattern(step_pattern)
end
return p