Module:Step vis: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Ganaram inukshuk (talk | contribs)
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..."
 
Ganaram inukshuk (talk | contribs)
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

Module documentation[view] [edit] [history] [purge]
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 
Functions provided (1)
Line Function Params
7 step_vis_frame (invokable) (frame)
Lua modules required (2)
Variable Module Functions used
mosinedo Module:MOS in EDO step_pattern
tip Module:Template input parse parse_entries

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