MIDI und audio-player
bearbeitet von
Guten Morgen!
> Was ist mit MIDI-Dateien? Beim Browservergleich werden die nicht aufgeführt.
kurz gegoogelt:
*Of course the HTML5 audio tag doesn't support MIDI. MIDI is (basically) a command set for interacting with tone generators, and beyond that, has nothing to do with making sound. Think of it more like an electronic equivalent to sheet music.*[^1]
[^1]: leviathant on Nov 8, 2010 on: [Dynamically generating MIDI in JavaScript](https://news.ycombinator.com/item?id=1884233)
> Die waren mal sehr beliebt, ich benutzte sie früher mittels
>
>~~~
> <embed src="...mid" align="baseline" border="0"
> width="144" height="60"
> autostart="true" controls="true" loop="false">
>~~~
>
> und habe nach Entdeckung, dass es nun Probleme gibt, hier den <audio>-Tag entdeckt.
Firefox hatte früher wohl den Quicktime-Player als Plugin installiert.
Eine Suche nach MIDI-Playern brachte dies:
* [HTML MIDI Player Basic Example](https://codepen.io/cifkao/pen/WNwpLzL)
* [babelsberg.js](https://github.com/babelsberg/babelsberg-js/tree/master/midijs)
- gefunden auf <https://stackoverflow.com/questions/5662293/how-to-play-a-midi-file-in-html>[^2]
[^2]: Lustig, SO empfiehlt ein JS zur Einbindung und dann sowas:
***Important edit** It seems that the remote file is doing Crypto mining, which is less than ideal. You should either store the file locally and remove t`("https://coinhive.com/lib/coinhive.min.js",D),` or use the original code from GitHub: https://github.com/babelsberg/babelsberg-js/tree/master/midijs
Herzliche Grüße
Matthias Scharwies
--
Das wirksamste Mittel gegen Sonnenbrand
ist Urlaub am Ostseestrand!