Module:Infobox interval: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 230: | Line 230: | ||
'[[File:' .. sound .. '|270px]]<br/><small>[[:File:' .. sound .. '|[sound info]]]</small>' | '[[File:' .. sound .. '|270px]]<br/><small>[[:File:' .. sound .. '|[sound info]]]</small>' | ||
}) | }) | ||
elseif | elseif cents then | ||
local hz = | local hz = 2 ^ (math.log(440)/math.log(2) + cents/1200) | ||
table.insert(infobox_data, { | |||
frame:expandTemplate{ | |||
title = 'User:Plumtree/Interval Sound', | |||
args = { Frequency=tostring(hz), Timbre='violin' } | |||
} | |||
}) | |||
end | end | ||