| 1 |
|
| 2 |
MIDI::ALSA |
| 3 |
|
| 4 |
|
| 5 |
This module offers a Perl interface to the ALSA library. It is a |
| 6 |
call-compatible translation into Perl of the Lua module midialsa |
| 7 |
http://www.pjb.com.au/comp/lua/midialsa.html which is in turn based |
| 8 |
on the Python modules alsaseq.py and alsamidi.py by Patricio Paez. |
| 9 |
|
| 10 |
It also offers some functions to translate events from and to the |
| 11 |
event format used in Sean Burke's MIDI-Perl module. |
| 12 |
|
| 13 |
Nothing is exported by default, but all the functions and constants |
| 14 |
can be exported, e.g.: |
| 15 |
use MIDI::ALSA(client, connectfrom, connectto, id, input, output); |
| 16 |
|
| 17 |
The event-type constants, beginning with SND_SEQ_, are available |
| 18 |
not as scalars, but as module subroutines with empty prototypes. |
| 19 |
They must therefore be used without a dollar-sign e.g.: |
| 20 |
if ($event[0] == MIDI::ALSA::SND_SEQ_EVENT_PORT_UNSUBSCRIBED) { ... |
| 21 |
|
| 22 |
The example/ directory includes: midikbd, midiecho and midiclick. |
| 23 |
|
| 24 |
To install: |
| 25 |
perl Makefile.PL; make; make install |
| 26 |
|
| 27 |
For up-to-date source, see http://search.cpan.org/~pjb/ |
| 28 |
|
| 29 |
Peter J Billam www.pjb.com.au/comp/contact.html www.pjb.com.au |