Module:Step vis: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 6: | 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 = tip.parse_entries(frame.args | 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:56, 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