Hi all,

I was playing around with pygame.midi and I was wondering whether there is
a way to get the actual device name rather than just the "input/output"
name. What I mean is, I have a program, say gmidimonitor, which has a midi
input which it calls "midi in". Now if I do a pygame.midi.get_device_info I
can get the name "midi in" but not the name of the program. If I look at
the qjackctl midi router for alsa midi devices I can see gmidimonitor
listed as "Midi Monitor" and it has one midi port "midi in" so it must be
another name parameter when it registers itself besides the actual port
names.

Most programs and physical midi devices seem to put their name into the
port name but I would like to make extra sure that my program can list the
midi devices with a sensible name. Currently if I list the midi ports (what
pygame.midi calls devices) the gmidimonitor port is just listed as
"midi_in" and this could be confusing for the user (which program's
"midi_in" ?).

Regards,

Kaspar

Reply via email to