[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] get real midi device or program name
- To: pygame-users@xxxxxxxx
- Subject: [pygame] get real midi device or program name
- From: Kaspar Bumke <kaspar.bumke@xxxxxxxxx>
- Date: Mon, 2 Apr 2012 19:54:11 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 02 Apr 2012 14:54:39 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=EBEQxL+krfJIG/Ju0TMXGiJhCE2DFCfKHV1e2EPpX0Q=; b=voLGZQFxYlGbytExqyQNO9t0dSK2LYUyq4gL2sCXlAwtb7dEb2D0PdY3VR6Q52hyLJ F6N8gNkmfNns79x6N6OIvbwC7evtwDSQwWqqlgh1WwLnNUk1bxvBUa08M4C0jdDiNYeM Y9HCI6cknruDfnPZBiL09bMdZMHAyu/0At9uqvsnNDWgLDQXlYmFwbgpnNfkfMUu7Jo0 TLdH6WF8+3qhFC6h5KFCo1MZsbHjJnOG+t0ZTlGzpoBwoXej3tDklwl7pIVW6kiN1R4c LlasjD8Sg3HFV8/oBkIgEHoAQz69UmcSWRCn+ucZFb0bpcIxXTBW+p7LrxRrmsFtf4FA WlPg==
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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