{"action":"created","issue":{"url":"https://api.github.com/repos/olemb/mido/issues/39","repository_url":"https://api.github.com/repos/olemb/mido","labels_url":"https://api.github.com/repos/olemb/mido/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/olemb/mido/issues/39/comments","events_url":"https://api.github.com/repos/olemb/mido/issues/39/events","html_url":"https://github.com/olemb/mido/issues/39","id":144190971,"number":39,"title":"Two identically named MIDI devices - can't open both.","user":{"login":"borfo","id":5758350,"avatar_url":"https://avatars.githubusercontent.com/u/5758350?v=3","gravatar_id":"","url":"https://api.github.com/users/borfo","html_url":"https://github.com/borfo","followers_url":"https://api.github.com/users/borfo/followers","following_url":"https://api.github.com/users/borfo/following{/other_user}","gists_url":"https://api.github.com/users/borfo/gists{/gist_id}","starred_url":"https://api.github.com/users/borfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borfo/subscriptions","organizations_url":"https://api.github.com/users/borfo/orgs","repos_url":"https://api.github.com/users/borfo/repos","events_url":"https://api.github.com/users/borfo/events{/privacy}","received_events_url":"https://api.github.com/users/borfo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-29T08:14:36Z","updated_at":"2016-05-25T07:31:24Z","closed_at":null,"body":"Hi - I'm trying to write a script using two Korg NanoPAD2 midi controllers.  Both of the controllers show up in Mido (portmidi, linux) with the same name - \"nanoPAD2 MIDI 1\".  I can't open both as ports in Mido using the port name.  The first device mounts, but when I try to open the second, i get a port is already open error.  \r\n\r\nIs there any way to mount based on anything other than the device name?  Could I use the alsa port number somehow?  Is there any other way to invoke open_input() other than with the text string device name?\r\n\r\nhere's the output of pmidi -l from the command line, showing the port numbers and device names.\r\n 28:0     nanoPAD2                          nanoPAD2 MIDI 1\r\n 36:0     nanoPAD2                          nanoPAD2 MIDI 1\r\n\r\n\r\n....RT-midi names them like this:  'nanoPAD2 28:0', 'nanoPAD2 36:0' - it works.  Would be nice if Portmidi could work too though.\r\n"},"comment":{"url":"https://api.github.com/repos/olemb/mido/issues/comments/221495210","html_url":"https://github.com/olemb/mido/issues/39#issuecomment-221495210","issue_url":"https://api.github.com/repos/olemb/mido/issues/39","id":221495210,"user":{"login":"SeanBeeson","id":347284,"avatar_url":"https://avatars.githubusercontent.com/u/347284?v=3","gravatar_id":"","url":"https://api.github.com/users/SeanBeeson","html_url":"https://github.com/SeanBeeson","followers_url":"https://api.github.com/users/SeanBeeson/followers","following_url":"https://api.github.com/users/SeanBeeson/following{/other_user}","gists_url":"https://api.github.com/users/SeanBeeson/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanBeeson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanBeeson/subscriptions","organizations_url":"https://api.github.com/users/SeanBeeson/orgs","repos_url":"https://api.github.com/users/SeanBeeson/repos","events_url":"https://api.github.com/users/SeanBeeson/events{/privacy}","received_events_url":"https://api.github.com/users/SeanBeeson/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T07:31:24Z","updated_at":"2016-05-25T07:31:24Z","body":"Hello, \r\n\r\nI am in need of being able to specify multiple ports from ALSA that have the same name as well on Linux. \r\n\r\n/bin/mido-ports give me the following.\r\n\r\n[root@x201 ~]# mido-ports\r\n\r\nAvailable input Ports:\r\n    'AudioFire12 MIDI 1'\r\n    'Midi Through Port-0'\r\n    'UM-1SX MIDI 1'\r\n    'UM-3 MIDI 1'\r\n    'UM-3 MIDI 1'\r\n    'UM-3 MIDI 2'\r\n    'UM-3 MIDI 2'\r\n    'UM-3 MIDI 3'\r\n    'UM-3 MIDI 3'\r\n    'nanoKEY2 MIDI 1'\r\n\r\nAvailable output Ports:\r\n    'AudioFire12 MIDI 1'\r\n    'Midi Through Port-0'\r\n    'UM-1SX MIDI 1'\r\n    'UM-3 MIDI 1'\r\n    'UM-3 MIDI 1'\r\n    'UM-3 MIDI 2'\r\n    'UM-3 MIDI 2'\r\n    'UM-3 MIDI 3'\r\n    'UM-3 MIDI 3'\r\n    'nanoKEY2 MIDI 1'\r\n    'qjackctl'\r\n\r\nHaving some way to differentiate these would be great. :)  \r\n\r\nI have often seen an inexpensive generic USB MIDI interface show as \"USB MIDI Interface MIDI 1\" while using two or more for each one. \r\n\r\nIt seems the name for any device from a manufacturer will always show up with the same name for each duplicate of the device being used.  \r\n\r\nKind regards,\r\n\r\nSean\r\n "}}
{"actor":{"display_login":"SeanBeeson"}}