Side A Band Midi Files

ENJOY THE ORIGINAL PILIPINO MUSIC.maligayang pakikinig:) right click to save your favourite OPM Midis. By Side A Band: here there and everywhere: by Jose Marie Chan: huwag na: by True Faith: i can: by Donna Cruz. All midi files are downloaded from different internet sites. None of them are mine. Should copyright issues be.

Active1 year, 1 month ago

how can I play a midi file in my html/php page

Right now I surf the net and got lots of simple embed code like the one I given below

But my firefox says to install plugin - Quicktime player

Side A Band Midi Files

I dont think this is the way or how to bypass this above said issue, may be if you can suggest another method to do this if any,

thanks...

Your Common Sense
135k21 gold badges151 silver badges265 bronze badges
Rahul TSRahul TS
6457 gold badges20 silver badges51 bronze badges

4 Answers

As far as I know, there is no cross-browser way to do this: Flash, the most common option when embedding audio on a web page, doesn't play Midi files.

The only way is indeed the embed method, and whether that works will depend on how the user's browser is set up. A plug-in (like Quicktime) will have to be installed that can handle the file. If the 'install plugin' dialog appears on a computer, it won't work there.

I think the only sane way is to convert those Midis to MP3 files.

Pekka 웃Pekka 웃
368k120 gold badges865 silver badges1025 bronze badges

I know it's been a while, but this is top of Google for 'website midi player', so I thought I'd drop in a solution.

I made a website and wanted to play a midi file, and there's a Javascript plugin you can use: http://www.midijs.net/

Just include the library:<script src='http://www.midijs.net/lib/midi.js'></script>

And then the file you want to play: <script>MIDIjs.play('path/to.your/file.mid');</script>

Important editIt 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

Thanks to @David de Kleer for pointing that out.

Grim...Grim...
12.2k6 gold badges36 silver badges58 bronze badges

Java can play MIDI files, and the necessary plugin is installed (in the factory) on most PCs

Incomplete examples here and here

finnwfinnw
39k17 gold badges126 silver badges204 bronze badges

Use Web Audio API for modern browsers. See complete example of player. It works on desktop and mobile.

user1024user1024

Side A Band Concert

5421 gold badge6 silver badges13 bronze badges

Side A Band

Not the answer you're looking for? Browse other questions tagged htmlmidi or ask your own question.