Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # b_wave_pitch.py
- import math
- z = 0
- ttt = []
- xy = {}
- if 1:
- incr = (360.0/255)/2
- while z < 360:
- s = math.cos(math.radians(z))*128+128
- xy[len(xy)] = min(255,int(s))
- z += incr
- t = [xy[z] for z in range(len(xy))]
- ttt.extend(t)
- ccc = ttt[:]
- for i in range(3,len(ttt),3):
- t = [ttt[z] for z in range(0,len(ttt),i)]
- ccc += t
- 0
- ccc = ccc[:1201]
- for i in range(len(ccc)):
- print(i, ccc[i])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement