Re: [LAU] command line midi player for >1 files? (Ecasound for midi?)

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Thu Jan 31 2013 - 14:08:18 EET

Nils Gey wrote:
>>> There is a MIDI port sequence defined for SMFs. <FF 21 01 pp> which is
>>> supposed to come at the start of a track. It specifies which port on
>>> the computer the track is to be sent to. I've never tired using this
>>> and don't even know if the alsa sequencer code supports it.
>>
>> One ALSA sequencer port corresponds to a MIDI port. To support this,
>> the player application has to send the track to a different port.
>> (aplaymidi does this.)
>
> But how to you specify the port? Is it hardcoded into the midi file or
> has the player some saying in this?

The MIDI file specifies a port number, which ist just a number from 0
to N-1; it's the player's responsibility to map this to actual ports.

Because of this unpredictable mapping, the MMA has declared the port
number meta-event obsolete. Officially, one should now use the port
name meta event <FF 09 len text>, but the mapping of the MIDI file's
port names to the playback device's port names does not happen to be
any less unpredictable ...

Regards,
Clemens
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Thu Jan 31 16:15:02 2013

This archive was generated by hypermail 2.1.8 : Thu Jan 31 2013 - 16:15:02 EET