Module:Temperament data: Difference between revisions
CompactStar (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
local p = {} | |||
local rat = require("Module:Rational") | local rat = require("Module:Rational") | ||
local u = require("Module:Utils") | local u = require("Module:Utils") | ||
local function gcd(a,b) | local function gcd(a, b) | ||
if type(a) == "number" and type(b) == "number" and a == math.floor(a) and b == math.floor(b) then | if type(a) == "number" and type(b) == "number" and a == math.floor(a) and b == math.floor(b) then | ||
if b == 0 then | if b == 0 then | ||