Didn't use any algorithms, reconstructed the midi from memory
Thanks to the LoopIt ai for converting the bytebeat to a midi.