MIDI Player Applet

By JiDuL • • 7 Jul 2011

Description

This Java Applet is a free multimedia player (mainly used by the website Midi-zer) for playing MIDI files.

Today, no browser (except IE) allows you to play natively musics with MIDI format on a web page. The solution has been to design an applet running on all machines with the Java Runtime Environment.

The applet looks like a media player, and can play a playlist of MIDI files given as parameters. It is available in three displays : light, medium, complete.

See the demonstration on Midi-zer

This software is free.

Websites currently using MIDI Player Applet:

Attributes list

The MIDI Player Applet can be included in a web page like any other Java applet. However, you have to set parameters in the code with attributes to indicate some options and file locations to play. You can see in the next section examples of HTML codes to display the applet on a web page.

It is possible to assign an infinite number of files to the playlist. For this, they should be numbered consecutively from 1 to N. We can associate to a file: URL, title, and album.

For safety reasons, this applet only allows you to play MIDI files on the same server. So you can not add files to the playlist with absolute URLs (eg http://www.awebsite.com/file.mid). URLs must be relative URLs (eg ../midis/file.mid).

Name Description Example of values
file_i URL of the file no. i ./midi/fichier.mid
title_i (optional) Title of the file no. i Crawling
album_i (optional) Album of the file no. i Linkin Park – Hybrid Theory
autostart (optional) Set if the player starts playing automatically or not (true by default) true | false
style (optional) Set the style of the player (complete by default) light | medium | complete

Examples of use

Style «Complete»

midiplayerapplet_complete

Screenshot - Complete Version

<applet code="com.jidul.midiplayer.MidiPlayer" codebase="." archive="MidiPlayer.jar" width="100%" height="185">
	<param name="autostart" value="false" />
	<param name="style" value="complete" />

	<param name="file_1" value="pkm_ash.mid" />
	<param name="title_1" value="Ash Theme" />
	<param name="album_1" value="Pokemon Gold Silver" />

	<param name="file_2" value="notssbm.mid" />
	<param name="title_2" value="Castle [Remix]" />
	<param name="album_2" value="Super Mario Bros" />

	<param name="file_3" value="ff7_bossbattle.mid" />
	<param name="title_3" value="Boss Battle" />
	<param name="album_3" value="Final Fantasy VII" />
</applet>

Style «Medium»

midiplayerapplet_medium

Screenshot - Medium Version

<applet code="com.jidul.midiplayer.MidiPlayer" codebase="." archive="MidiPlayer.jar" width="100%" height="28">
	<param name="autostart" value="false" />
	<param name="style" value="medium" />

	<param name="file_1" value="pkm_ash.mid" />
	<param name="title_1" value="Ash Theme" />
	<param name="album_1" value="Pokemon Gold Silver" />

	<param name="file_2" value="notssbm.mid" />
	<param name="title_2" value="Castle [Remix]" />
	<param name="album_2" value="Super Mario Bros" />

	<param name="file_3" value="ff7_bossbattle.mid" />
	<param name="title_3" value="Boss Battle" />
	<param name="album_3" value="Final Fantasy VII" />
</applet>

Style «Light»

midiplayerapplet_light

Screenshot - Light Version

<applet code="com.jidul.midiplayer.MidiPlayer" codebase="." archive="MidiPlayer.jar" width="70" height="28">
	<param name="autostart" value="false" />
	<param name="style" value="light" />

	<param name="file_1" value="pkm_ash.mid" />
	<param name="title_1" value="Ash Theme" />
	<param name="album_1" value="Pokemon Gold Silver" />

	<param name="file_2" value="notssbm.mid" />
	<param name="title_2" value="Castle [Remix]" />
	<param name="album_2" value="Super Mario Bros" />

	<param name="file_3" value="ff7_bossbattle.mid" />
	<param name="title_3" value="Boss Battle" /&gt;
	<param name="album_3" value="Final Fantasy VII" />
</applet>

Download


Download a library of MIDI files on Midi-zer!

Cette note est également disponible en: French

15 Responses

  1. Sopheapnyfa

    why i can not download midi from java player? please give me an advise…

  2. Hi, any updates to this beautiful midi player?

    It seems to hang on some occasions when people visit my site.

  3. Maxi

    how can we download midi from http://midizer.online.fr

  4. Hi,

    maybe someone can help, please.
    the applet does not work.
    How can i implement it correctly ?

    Thanks a lot

    • I checked the source of your webpage.
      It seems like the path to “../midis/An_der_schönen_blauen_Donau.MID” doesn’t exist.
      Or try without putting special caracter in the name (ex: ö).

  5. Hi,

    i tried again with what you said, but it doesn´t work.
    Please look at it again. Maybe i did something wrong.

    Where i have to put the MidiPlayer.jar and where the midi file at my website ?

    Please help…

    Thanks

  6. chris

    by the way, you have to change it also on your page.
    on the second example, it is also wrong like that.

    chris

  7. David

    Hi,

    I am trying to use your midi player (code below), the player UI shows however, it reports “Error: Midi Unavailable” Could you shed any light on this? I have verified the file path is correct and the midi exists.

    Thank you
    David

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>