Re: [LAU] Perl MIDI::ALSA module

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Mon Dec 07 2015 - 09:50:56 EET

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
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Mon Dec 7 12:15:01 2015

This archive was generated by hypermail 2.1.8 : Mon Dec 07 2015 - 12:15:01 EET