Jump to content

Musical scale: Difference between revisions

m
→‎Lua Windows: simplified math
(→‎{{header|Lua}}: additional Lua solutions)
m (→‎Lua Windows: simplified math)
Line 707:
beep:types{ret='long', abi='stdcall', 'long', 'long'}
for _,step in ipairs{0,2,4,5,7,9,11,12} do
beep(math.floor(261.63 * (2^(1step/12))^step + 0.5), 1000)
end</lang>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.