tmont/midiparser
最新稳定版本:1.1.0
Composer 安装命令:
composer require tmont/midiparser
包简介
MIDI parsing library
README 文档
README
Licensed under WTFPL
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.
The following snippet is an example of how to generate a plaintext report.
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.
Development
# install dependencies composer install # run tests vendor/bin/phpunit
统计信息
- 总下载量: 40.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 37
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: WTFPL
- 更新时间: 2014-01-22