NAME

MIDI::Stream - MIDI bytestream decoding and encoding

VERSION

version 0.002

DESCRIPTION

MIDI::Stream includes a realtime MIDI bytestream encoder and decoder.

The classes in this distribution are stateful and are designed so a single instance serves a single MIDI port, or device, or bytestream. Attempting to consume or generate multiple streams in a single instance could result in partial message collision. running status confusion, or inaccurate tempo measurement - there are no MIDI-merge facilities.

For turning midi bytestreams into usable events see MIDI::Stream::Decoder.

For turning performance and system events into a MIDI bytes suitable for passing to MIDI hardware and other MIDI software see MIDI::Stream::Encoder.

AUTHOR

John Barrett <john@jbrt.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by John Barrett.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.