3 ms·
They should embed a MIDI player like this: https://cifkao.github.io/html-midi-player/ https://cifkao.github.io/html-midi-player/
by vishnuharidas 3y ago
They should embed a MIDI player like this: https://cifkao.github.io/html-midi-player/ https://cifkao.github.io/html-midi-player/
- nness 3y agoI've created a Tampermonkey script to do just that: https://gist.github.com/lachlanmcdonald/b2d9663fdb13fc1df82025990ea0db7a 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...
- thesuitonym 3y agoWhy not just a simple <embed> and let the browser handle it? Or do modern browsers not handle MIDI anymore?
- _flux 3y agoI wouldn't expect browsers to come with a General MIDI patch set..
- thesuitonym 3y agoIn the 90s and early 00s, that's pretty much all the embed tag was for. Other formats were too big.
- pajko 3y agohttps://github.com/feross/timidity https://github.com/feross/timidity
- nness 3y agoNo support — seems neither <embed> nor <audio> can play the midi format.