# Initialize MIDI input and output inport = mido.open_input() outport = mido.open_output()