Module:Infobox chord: Difference between revisions

Bcmills (talk | contribs)
No edit summary
Bcmills (talk | contribs)
No edit summary
Line 44: Line 44:
end
end
local root = harmonics[1]
local root = harmonics[1]
if utils.value_provided(frame.args["Root"]) then
root = tonumber(hs)
assert(root > 0, "invalid root")
end
assert(root > 0, "no harmonics given")
assert(root > 0, "no harmonics given")