定制 tmont/midiparser 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tmont/midiparser

最新稳定版本:1.1.0

Composer 安装命令:

composer require tmont/midiparser

包简介

MIDI parsing library

README 文档

README

Build Status

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.36k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 37
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 37
  • Watchers: 6
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: WTFPL
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固