NAME

Peta::Synth::MIDI::Stream - MIDI bytes as a device sends them, into events

VERSION

version 0.2610180

SYNOPSIS

my $stream = Peta::Synth::MIDI::Stream->new;
$synth->play($_) for $stream->feed($bytes);

DESCRIPTION

Running status, system exclusive, real-time bytes in between (ignored, but a system reset, FF, which is taken as GM System On); the events are Peta::Synth::MIDI's.

METHODS

new, feed

new: a stream with nothing in it yet; feed($bytes): the events the bytes complete, what is not whole yet kept for the next bytes.

AUTHOR

PetaMem s.r.o. <info@petamem.com>

COPYRIGHT

Copyright (c) 2026 PetaMem s.r.o.

LICENSE

This package is free software, dual-licensed under the Artistic License 2.0 and the BSD 2-Clause License. See the LICENSE file of the distribution.