dsacre / mididings

A MIDI router/processor based on Python
http://das.nasophon.de/mididings/
GNU General Public License v2.0
120 stars 40 forks source link

Add support for get_client_name() and get_client_id() to engine #17

Open MaurizioB opened 8 years ago

MaurizioB commented 8 years ago

I added support for mididings.engine.get_client_name() which returns the unique name of the mididings sequencer engine (useful for unique jack names) and mididings.engine.get_client_id() which returns the client port number (ALSA) or client UUID (JACK) which in turn is useful for ALSA non-unique nature. This is obviously not very useful for mididings only scripts, but for programs which use it as a module. I have to make an apology: I know very little about programming, and, most important, I know almost nothing about c++. The code added looks "clean" and it works (at least on my machine), but I might have done things in a unorthodox way...