I decoded a binary MIDI file of the coffin dance theme using MIDICSV. Then I wrote a script which translates midi channel signals to note activations which are mapped to the Raft piano set up (1,2,...,0 space shift). Finally, the key activations are written to an autohotkey script with the correct tempo to produce the desired notes. the biggest challenge was actually finding a midi which only uses white keys and which spans no more than three octaves (raft piano limitation) Link to code:
Hide player controls
Hide resume playing