2017 © Pedro Peláez
 

library midiparser

MIDI parsing library

image

tmont/midiparser

MIDI parsing library

  • Friday, May 20, 2016
  • by tmont
  • Repository
  • 5 Watchers
  • 21 Stars
  • 132 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 9 % Grown

The README.md

PHP MIDI Parser

Build Status, (*1)

Licensed under WTFPL, (*2)

Installation

Requirements

  • PHP >= 5.3.0

Usage

If you clone the repository, you can run ant sample to run the sample script at ./sample/test.php, which will generate an HTML report., (*3)

The following snippet is an example of how to generate a plaintext report., (*4)

require_once 'vendor/autoload.php';

use Tmont\Midi\Parsing\FileParser;
use Tmont\Midi\Reporting\TextFormatter;
use Tmont\Midi\Reporting\Printer;

//create a new file parser
$parser = new FileParser();

//replace this path with the path to an actual MIDI file
$parser->load('/path/to/midi/file.mid');

//create a Printer object
$printer = new Printer(new TextFormatter(), $parser);

//output the parse result
$printer->printAll();

Parser Usage

If you want more control over the data, you can use the parser directly. See the print notes sample script for an example of how to do this., (*5)

Development

```bash, (*6)

install dependencies

composer install, (*7)

run tests

vendor/bin/phpunit ```, (*8)

The Versions

20/05 2016

dev-master

9999999-dev

MIDI parsing library

  Sources   Download

WTFPL

The Development Requires

parser music midi

22/01 2014

1.1.0

1.1.0.0

MIDI parsing library

  Sources   Download

WTFPL

The Development Requires

parser music midi