Skip to content

Commit

Permalink
Make array of sine #10
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Jun 30, 2018
1 parent 0af5338 commit 8541de3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gen_array.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/python

import math

msg = "dc.b "
num = 32
amp = 10
for i in range(num):
msg += str(int(amp * math.cos(float(i) / float(num) * math.pi))) + ","
# msg += "-1,"
print msg

0 comments on commit 8541de3

Please sign in to comment.