Skip to content

Commit b5a8215

Browse files
authored
Update ByteBeat.py
1 parent d84b534 commit b5a8215

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ByteBeat.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import ctypes
22
from ctypes import byref, create_string_buffer, c_int, c_long, c_byte, POINTER, sizeof
33
from win32api import Sleep
4-
from numpy import sin, tan, cos, sqrt
4+
from numpy import sin, tan, cos, sqrt # can remove this
55
from math import floor, ceil
6-
from numpy import log as ln
6+
from numpy import log as ln # can remove this too
77
from functools import partial
88

99
class Infix(object):
@@ -43,6 +43,8 @@ class WAVEHDR(ctypes.Structure):
4343
("reserved", DWORD)
4444
]
4545
LPWAVEHDR = POINTER(WAVEHDR)
46+
47+
# fixes js only stuff
4648
division_key_fix=Infix(lambda x,y: x/y if y else 0)
4749
operand_key_fix=Infix(lambda x,y: int(x)|int(y))
4850
charcodeat_key_fix=Infix(lambda s,y: ord(s[y]))

0 commit comments

Comments
 (0)