* Define a function to output MIDI data generated by the KOJI library for further processing or playback. Deliverables: * Implement the output_midi_object function. * Unit tests to ensure correct MIDI formatting. * Should output a ByteArray