Module:Temperament data

From Xenharmonic Wiki
Revision as of 21:47, 27 July 2023 by CompactStar (talk | contribs) (IDK why no one thought of making this a module, although it would take a while because I have to figure out the linear algebra on computing CTE tuning.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Module documentation[view] [edit] [history] [purge]
This module should not be invoked directly; use its corresponding template instead: Template:Temperament data.
Module:Temperament data is a draft module. It is incomplete and may not be in active development. If possible, editors are encouraged to help with its development. In the meantime, editors should avoid using this module across the Xenharmonic Wiki, except for testing.
Introspection summary for Module:Temperament data 
Functions provided (0)
Line Function Params
Lua modules required (1)
Variable Module Functions used
rat Module:Rational dependency not used

No function descriptions were provided. The Lua code may have further information.


local rat = require('Module:Rational')

local function matmul(a, b)
	local result = {}
	for i in 1,#a  do
		result[i] = {}
		for j in 1,#(b[1]) do
			result[i][j] = 0
			for k in 1,#(a[1]) do
				result[i][j] = result[i][j] + a[i][k] * b[k][j]
			end
		end
	end
	return result
end

return p