Audio: MIDI Class
valentin schmidt (contact me)
This is a class for reading, writing, analyzing, modifying, creating, downloading and playing (embedding) standard MIDI files (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 MF2T/T2MF created by Piet van Oostrum.
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 MIDI XML.
| Utility
| Consistency
| Docs
| Examples
| Tests
| Videos
| Overall
| Rank
|
| Good (96.4%)
| Good (87.5%)
| Good (82.1%)
| Good (92.9%)
| -
| -
| Sufficient (74.5%)
| 56 |
Click here for detailed information about this class on phpclasses.org
Example
converts MIDI files of type 1 to type 0
Example
demonstrates how to find the duration of a MIDI file.
Example
demonstrates manipulation of MIDI data
Example
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).
Example
demonstrates binary MIDI file to RTTL ringtone conversion
Example
demonstrates binary MIDI file to text (MF2T/T2MF format) conversion
Example
demonstrates binary MIDI file to MIDI XML conversion
Example
demonstrates RTTL ringtone to binary MIDI file conversion
Example
little online sequencer, 4 drum tracks, 4 instrument tracks, 1 bar only
Example
demonstrates text (MF2T/T2MF format) to binary MIDI file conversion