- Linux only.
- very basic implementation.
- no callbacks
- can only access physical ports. (Devices that are plugged in.)
- high overhead when sending since it runs the
amidicommand for each messages.
- known bug: is one behind when receiving messages. See below.
amidi command (a part of ALSA) is used for I/O:
* ``amidi -l`` to list messages (in ``get_input_names()`` etc.)
amidi -d -p DEVICEto receive messages.
amidiprints these out one on each line as hex bytes. Unfortunately it puts the newline at the beginning of the line which flushes the buffer before the message instead of after. This causes problems with non-blocking receiption using
select.poll()which means messages are received one behind. This needs to be looked into.
amidi --send-hex MESSAGE_IN_HEX -p DEVICEto send messages. Since this is called for every messages the overhead is very high.