motniemtin / midi
There is no license information available for the latest version (v1.0) of this package.
Midi Class port from Valentin Schmidt [Midi Class]
v1.0
2018-11-30 04:32 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-03-29 00:58:11 UTC
README
Class for Midi file, Help to convert midi to txt format, caculator midi duration, convert type 0 <--> type 1
Install
composer require motniemtin/midiclassUse
use MidiClass\Midi;
//Instanciates a midi
$midi = new Midi();
//open midi file
$midi->importMid($file);
//get Tracks Count
$midi->getTrackCount();
//get tempo
$midi->getTempo();
//get Midi Text format
$midi->getTxt();
//get Midi xml format
$midi->getXml();