Download the PHP package perry-rylance/midi-php without Composer
On this page you can find all versions of the php package perry-rylance/midi-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download perry-rylance/midi-php
More information about perry-rylance/midi-php
Files in perry-rylance/midi-php
Download perry-rylance/midi-php
More information about perry-rylance/midi-php
Files in perry-rylance/midi-php
Vendor perry-rylance
Package midi-php
Short Description Read, build and write MIDI files, tracks and events in PHP
License MIT
Homepage https://github.com/PerryRylance/midi-php
Package midi-php
Short Description Read, build and write MIDI files, tracks and events in PHP
License MIT
Homepage https://github.com/PerryRylance/midi-php
Keywords midi
Please rate this library. Is it a good library?
Informations about the package midi-php
midi-php
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 yourReadStream
Creating MIDI data
- Instantiate a
new File
- Instantiate a
new Track
and push it to your filestracks
- Instantiate any subclasses of
Event
you need, egNoteOnEvent
- 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 yourFile
passing in yourWriteStream
- Use
toBinary
on yourWriteStream
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
- 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
All versions of midi-php with dependencies
PHP Build Version
Package Version
The package perry-rylance/midi-php contains the following files
Loading the files please wait ....