[LAU] Perl MIDI::ALSA module
Clemens Ladisch
clemens at ladisch.de
Mon Dec 7 07:50:56 UTC 2015
Brent Busby wrote:
> Would anyone on the list happen to be familiar with MIDI::ALSA from CPAN?
Never heard of it.
> There doesn't seem to be much documentation, and the example programs
> seem to have everything but the kitchen sink in them.
Google sends me to <http://search.cpan.org/~pjb/MIDI-ALSA-1.20/ALSA.pm>,
which has a nicely small example.
> how to connect to a port and do sysex transmit with it
use MIDI::ALSA(':CONSTS');
MIDI::ALSA::client( 'hello world', 0, 1, 0 );
MIDI::ALSA::connectto( 0, 20, 0 ); # from me:0 to 20:0
MIDI::ALSA::output( 0, "\x7e\x7f\x09\x01" );
Regards,
Clemens
More information about the Linux-audio-user
mailing list