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

This package is auto-updated.

Last update: 2024-09-29 05:29:29 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/midiclass

Use

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();