NAME

Peta::Synth::Input::Raw - MIDI bytes from a device or a pipe

VERSION

version 0.2610180

SYNOPSIS

my $in = Peta::Synth::Input::Raw->new('/dev/snd/midiC1D0');
$synth->play($_) for $in->events;

DESCRIPTION

What Peta::Synth::Input reads when it is given a path.

METHODS

new

new($path): the device or pipe, opened for reading.

events

events($wait): what has come, as Peta::Synth::MIDI's events, waiting at most $wait seconds for the first; as Peta::Synth::Input's.

handle, address, connected

Its file handle (for select); its path, which is also what is connected.

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.