blob: 0b0faef63fd5f8872523151330f0fe659e432787 (
plain)
1
2
3
4
5
6
7
8
9
10
|
step = 0
function wave()
for chan=1,24 do
output("wave" .. chan, (math.sin(math.rad((step + chan * 360 / 24) % 360)) + 1) / 2)
end
step = (step + 5) % 360
end
interval(wave, 100)
|