Playing A Random Midi File

This page demonstrates the use of the random midi script. Every time you view this page, a different midi file will play.

How To Use

  1. Create a Directory called midis
    Have nothing else in this Directory but midis.
  2. Put all of your midi files in that folder. They must end in .mid (lowercase)
  3. Now transload the .zip page to your Main FM then unzip it.
    This will create a random-music.cgi File
To use this on a Page, CCP and
Insert the following code into your html file:








To call this script from an email,
Just embed the following MIDI file link in your email like this:



<embed src="http://www.yoursite.com/cgi-bin/random-midi.cgi">


where yoursite.com is the name of your website. "Happy Listening" <bgsound src="/cgi-bin/random-midi.cgi" loop="true">