We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae43324 commit 2a5688eCopy full SHA for 2a5688e
PythonBlueBox.py
@@ -74,8 +74,8 @@
74
continue
75
76
stream.write(array.array('f',
77
- ((volume * math.sin(2.0 * math.pi * i * tone[0] / sr) + volume * math.sin(2.0 * math.pi * i * tone[1] / sr))
78
- for i in range(int(sr*length)))).tostring())
+ ((volume * math.sin(2.0 * math.pi * i * tone[0] / float(sr)) + volume * math.sin(2.0 * math.pi * i * tone[1] / float(sr)))
+ for i in range(sr*int(length)))).tostring())
79
80
81
stream.close()
0 commit comments