Source code for jdxi_editor.midi.io.clock
"""clock test file"""
import time
import mido
try:
except Exception as e:
print(f"Error opening MIDI output port: {e}")
exit()
try:
while True:
outport.send(clock_message)
time.sleep(time_per_pulse)
except KeyboardInterrupt:
print("Stopping MIDI clock.")
finally:
outport.close()