The RoombaMusic project enables legacy iRobot Roomba models to play MIDI files by utilizing the Roomba Open Interface (ROI) protocol. The developer created a Java-based application to replace outdated tools that were incompatible with modern operating systems.

The core mechanism involves bypassing the robot's 16-note memory buffer limit by continuously overwriting a single song slot in real-time. The application sends a note command followed by a play command, allowing the robot to produce a continuous melody.

The software uses the jssc library for serial communication, supporting standard parameters of 115200 baud, 8 data bits, 1 stop bit, and no parity. It automatically detects available serial ports and allows users to load MIDI files for playback.

The application processes MIDI files using the javax.sound.midi package. It triggers a note-sending function for every NOTE_ON event, with a fixed note duration of 125 milliseconds to maintain playback rhythm and prevent buffer overflow.

Current limitations include the truncation of long notes and minor tempo drift due to the lack of strict synchronization with MIDI timestamps. The source code is available on GitHub under the user profile TimoNiki.