There is no license information available for the latest version (v1.0) of this package.

Midi Class port from Valentin Schmidt [Midi Class]

Installs: 360

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/motniemtin/midi

v1.0 2018-11-30 04:32 UTC

This package is auto-updated.

Last update: 2025-09-29 02:28: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/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();