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 ReadStreamwith your binary data - Instantiate a
new File - Call
readBytespassing in yourReadStream
Creating MIDI data
- Instantiate a
new File - Instantiate a
new Trackand push it to your filestracks - Instantiate any subclasses of
Eventyou need, egNoteOnEvent - Push your events to the tracks
events - Don't forget
EndOfTrackEvent!
Writing MIDI data
- You'll need a
Fileeither read in or created from scratch as described above - Instantiate a
new WriteStream - Call
writeByteson yourFilepassing in yourWriteStream - Use
toBinaryon yourWriteStreamto 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
- With thanks to Recording Blogs, Teragon Audio and Mido for insight into the MIDI spec.
- With thanks to jazz-soft for the test files.
- With thanks to Jeff Boudier for MIDIopsy
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-21