EmuLua scripts for recording retro game sound to MIDI file