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.
2 parents ec88f42 + 0aca4ab commit ae43324Copy full SHA for ae43324
PythonBlueBox.py
@@ -74,7 +74,7 @@
74
continue
75
76
stream.write(array.array('f',
77
- ((volume * math.sin(i / (tone[0] / 100.)) + volume * math.sin(i / (tone[1] / 100.)))
+ ((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())
79
80
0 commit comments