1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2025-01-11 08:30:02 +00:00
8bitworkshop/tools/sintbl.py

17 lines
175 B
Python
Raw Normal View History

import math
#n = 8
#m = 127
2018-02-05 14:51:20 -06:00
n = 32
m = 127
2018-02-05 14:51:20 -06:00
n = 4
m = 7
2017-04-14 18:43:07 -04:00
for i in range(0,n*4):
print '%d,' % int(round(math.sin(i*math.pi/2/n)*m)),
if i % 16 == 15:
print