Loading player_functions.py +15 −1 Original line number Diff line number Diff line Loading @@ -75,8 +75,22 @@ def resetDevice(device_id, mode='GS'): # send the sysex command for a GS Reset to the synth using amidi subprocess.run(['amidi', '-p', device_id, '-S', 'F04110421240007F0041F7']) print(fn_prefix + ": Reset device to GS Mode") elif mode == "MUN": statusmsg = f"Performing MU Native Reset" updateDisplay(str.encode(statusmsg)) morbital.setDeviceLED(display, 0, 3) # send the sysex command for a MU Native to the synth using amidi subprocess.run(['amidi', '-p', device_id, '-S', 'F043104900001201F7']) print(fn_prefix + ": Reset device to MU Native Mode") elif mode == "MUB": statusmsg = f"Performing MU Basic Reset" updateDisplay(str.encode(statusmsg)) morbital.setDeviceLED(display, 0, 3) # send the sysex command for a MU Basic to the synth using amidi subprocess.run(['amidi', '-p', device_id, '-S', 'F043104900001200F7']) print(fn_prefix + ": Reset device to MU Basic Mode") else: print(fn_prefix + ": Invalid reset mode; must be GM or GS") print(fn_prefix + ": Invalid reset mode; must be GM, GS, MUB (MU Basic) or MUN (MU Native)") return 0 return Loading Loading
player_functions.py +15 −1 Original line number Diff line number Diff line Loading @@ -75,8 +75,22 @@ def resetDevice(device_id, mode='GS'): # send the sysex command for a GS Reset to the synth using amidi subprocess.run(['amidi', '-p', device_id, '-S', 'F04110421240007F0041F7']) print(fn_prefix + ": Reset device to GS Mode") elif mode == "MUN": statusmsg = f"Performing MU Native Reset" updateDisplay(str.encode(statusmsg)) morbital.setDeviceLED(display, 0, 3) # send the sysex command for a MU Native to the synth using amidi subprocess.run(['amidi', '-p', device_id, '-S', 'F043104900001201F7']) print(fn_prefix + ": Reset device to MU Native Mode") elif mode == "MUB": statusmsg = f"Performing MU Basic Reset" updateDisplay(str.encode(statusmsg)) morbital.setDeviceLED(display, 0, 3) # send the sysex command for a MU Basic to the synth using amidi subprocess.run(['amidi', '-p', device_id, '-S', 'F043104900001200F7']) print(fn_prefix + ": Reset device to MU Basic Mode") else: print(fn_prefix + ": Invalid reset mode; must be GM or GS") print(fn_prefix + ": Invalid reset mode; must be GM, GS, MUB (MU Basic) or MUN (MU Native)") return 0 return Loading