diff --git a/gen_array.py b/gen_array.py new file mode 100755 index 0000000..70d52f2 --- /dev/null +++ b/gen_array.py @@ -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