Loading player_functions.py +2 −2 Original line number Diff line number Diff line Loading @@ -13,9 +13,8 @@ import threading display = serial.Serial("/dev/ttyUSB0", 19200, serial.EIGHTBITS, serial.PARITY_NONE, serial.STOPBITS_ONE, timeout=5, rtscts=False) threading.Thread(target=serial_listener).start() def serial_listener(): def stoplisten(): while True: # Read one byte from the serial port data = display.read() Loading @@ -35,6 +34,7 @@ def findAMIDIDevice(): # return the ID of the first one return result[result.find("hw:".encode('ascii')):result.find(",".encode('ascii'))].decode('ascii') threading.Thread(target=stoplisten).start() # GM Mode= 'F07E7F0901F7' # GS Mode= 'F04110421240007F0041F7' Loading Loading
player_functions.py +2 −2 Original line number Diff line number Diff line Loading @@ -13,9 +13,8 @@ import threading display = serial.Serial("/dev/ttyUSB0", 19200, serial.EIGHTBITS, serial.PARITY_NONE, serial.STOPBITS_ONE, timeout=5, rtscts=False) threading.Thread(target=serial_listener).start() def serial_listener(): def stoplisten(): while True: # Read one byte from the serial port data = display.read() Loading @@ -35,6 +34,7 @@ def findAMIDIDevice(): # return the ID of the first one return result[result.find("hw:".encode('ascii')):result.find(",".encode('ascii'))].decode('ascii') threading.Thread(target=stoplisten).start() # GM Mode= 'F07E7F0901F7' # GS Mode= 'F04110421240007F0041F7' Loading