Front Interview Question

code a midi player in JS