MIDI Player Applet

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<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" />
	<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

4 comments on “MIDI Player Applet
  1. Sopheapnyfa says:

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

  2. Terence says:

    Hi, any updates to this beautiful midi player?

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

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>