ppaez / alsaseq

ALSA sequencer bindings for Python
GNU General Public License v2.0
6 stars 6 forks source link

List input and output ports #10

Open ppaez opened 6 years ago

ppaez commented 6 years ago

Add a function to return a list of input sequencer ports like the output of aconnect -i and a list of output sequencer ports like aconnect -o. Each element of the lists should include client number, name, and a list with port numbers and names, for example:

[(14, 'Midi Through', [(0, 'Midi Through Port-0')]

This will allow a program using alsaseq to search the client and port names and know the corresponding client and port numbers to connect to and disconnect from.