Location: PHPKode > scripts > MIDI Class > readme.htm
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<title>MIDI CLASS</title>
h2 {
<body bgcolor="#FFFFFF">

<h1>MIDI CLASS</h1>


Class for reading, writing, analyzing, modifying, creating, downloading 
and playing (embedding) standard MIDI files (*.mid, *.rmi) of type 0 or 1. MIDI songs are 
internally represented as lists of tracks, where each track is a list of 
messages, and each message is a string. The message string format is 
the same as the one used by the commandline tools <a href="ftp://ftp.cs.ruu.nl/pub/MIDI/PROGRAMS/MSDOS/mf2t.zip">MF2T/T2MF</a>
created by Piet van Oostrum.<br><br>
The class provides methods to generate and manipulate MIDI data and to import and export binary midi files (SMF, *.mid), text in the MF2T/T2MF format and <a href="http://www.recordare.com/dtds/midixml.html">MIDI XML</a>.<br>


<li>audio toys</li>
<li>ringtone creators</li>
<li>musical education/training</li>

<h2><a href="documentation.htm">Documentation</a></h2>


<a href="manipulate.php">manipulate.php</a><br>
demonstrates manipulation of MIDI data (imported MIDI file) in various 
<a href="sequencer.php">sequencer.php</a><br>
little online sequencer, 4 drum tracks, 4 instrument tracks, 1 bar 
only, result can be saved (simple mix format: serialized post array).
<a href="mid2txt.php">mid2txt.php</a><br>
demonstrates binary MIDI file to text (MF2T/T2MF format) conversion
<a href="txt2mid.php">txt2mid.php</a><br>
demonstrates text (MF2T/T2MF format) to binary MIDI file conversion
<a href="mid2xml.php">mid2xml.php</a><br>
demonstrates binary MIDI file to MIDI XML conversion
<a href="xml2mid.php">xml2mid.php</a><br>
demonstrates MIDI XML to binary MIDI file conversion
<a href="meta.php">meta.php</a><br>
shows content of all meta events in the first track of a MIDI file. These events are often used for song title, copyright informations etc. (like ID3 tags in mp3 files).
<a href="duration.php">duration.php</a><br>
demonstrates how to find the duration of a MIDI file.
<a href="convert.php">convert.php</a><br>
converts MIDI files of type 1 to type 0.
<a href="mid2rttl.php">mid2rttl.php</a><br>
demonstrates (simple) binary MIDI file to RTTL ringtone conversion (uses the RTTL extension, see <a href="downloads/">downloads</a>).
<a href="rttl2mid.php">rttl2mid.php</a><br>
demonstrates RTTL ringtone to binary MIDI file conversion (uses the RTTL extension, see <a href="downloads/">downloads</a>).

<h2><a href="downloads/">Downloads</a></h2>

<h2>Related Links</h2>
<a href="http://www.midi.org/">MIDI Manufacturers Association (MMA)</a><br>
<a href="http://www.midi.org/dtds/midi_xml.shtml">MMA's MIDI XML Specifications</a><br>
<a href="http://www.recordare.com/default.asp">Recordare</a><br>
<a href="http://www.recordare.com/dtds/midixml.html">Standard MIDI File DTD: MIDI XML</a><br>
<a href="ftp://ftp.cs.ruu.nl/pub/MIDI/PROGRAMS/MSDOS/mf2t.zip">MF2T/T2MF</a><br>
<a href="http://www.midiox.com/">MIDI-OX</a><br>
<a href="http://www.beatnik.com/">Beatnik</a>

<a href="mailto:hide@address.com">hide@address.com</a>

Return current item: MIDI Class