How to play a midi file via html file

You need to use Javascript plugin

http://www.midijs.net

Include the library and specify to file you wish to play

<script src='http://www.midijs.net/lib/midi.js'></script>
<script>MIDIjs.play('/home/username/file.midi');</script>

Done

Source: https://stackoverflow.com/questions/5662293/how-to-play-a-midi-file-in-html

Similar Posts:

Leave a Reply

Your email address will not be published.