Hacker News new | ask | show | jobs
by vishnuharidas 916 days ago
They should embed a MIDI player like this: https://cifkao.github.io/html-midi-player/
2 comments

I've created a Tampermonkey script to do just that: https://gist.github.com/lachlanmcdonald/b2d9663fdb13fc1df820...

It mostly works — except I've noticed that html-midi-player will continue to play the last note if there's any kind of delay set, which is jarring. html-midi-player doesn't seem to expose a JavaScript API to make any of it simple...

Why not just a simple <embed> and let the browser handle it? Or do modern browsers not handle MIDI anymore?
No support — seems neither <embed> nor <audio> can play the midi format.
I wouldn't expect browsers to come with a General MIDI patch set..
In the 90s and early 00s, that's pretty much all the embed tag was for. Other formats were too big.