Front interview question

code a midi player in JS