Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Returns information about a midi device.

A file-tuple is returned:
(interf, name, isinput, isoutput, isopen).

        def get_device_info(device_id):
    """Returns information about a midi device.
    
    A file-tuple is returned:
    (interf, name, isinput, isoutput, isopen).
    
    """
    _check_initialized()
    return device_info(*pypm.GetDeviceInfo(device_id))
        


src/f/r/frescobaldi-HEAD/frescobaldi_app/midihub.py   frescobaldi(Download)
def device_infos():
    """Yields the device info for all PortMIDI devices."""
    for n in range(get_count()):
        yield portmidi.get_device_info(n)
 
def output_by_name(name):
    """Returns a portmidi.Output instance for name."""
    for n in range(get_count()):
        i = portmidi.get_device_info(n)
        if i.isoutput and i.name.startswith(name) and not i.isopen:
def input_by_name(name):
    """Returns a portmidi.Output instance for name."""
    for n in range(get_count()):
        i = portmidi.get_device_info(n)
        if i.isinput and i.name.startswith(name) and not i.isopen: