perry-rylance/midi-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

perry-rylance/midi-php

最新稳定版本:1.0.1

Composer 安装命令:

composer require perry-rylance/midi-php

包简介

Read, build and write MIDI files, tracks and events in PHP

关键字:

README 文档

README

A package for reading and writing MIDI files and streams in PHP.

Usage

Reading MIDI data

  • Get your data into a binary string
  • Instantiate a new ReadStream with your binary data
  • Instantiate a new File
  • Call readBytes passing in your ReadStream

Creating MIDI data

  • Instantiate a new File
  • Instantiate a new Track and push it to your files tracks
  • Instantiate any subclasses of Event you need, eg NoteOnEvent
  • Push your events to the tracks events
  • Don't forget EndOfTrackEvent!

Writing MIDI data

  • You'll need a File either read in or created from scratch as described above
  • Instantiate a new WriteStream
  • Call writeBytes on your File passing in your WriteStream
  • Use toBinary on your WriteStream to get the binary data

Development

-dev containers with XDebug are provided and will stay open once started.

Testing

All tests can be run with cross-version-tests.sh.

Tests can be run on specific versions by starting the respective containers.

Credits

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-21