: devlist = mididevinfo ()
: mididevinfo ()

Retrieve the midi devices detected within the system.

The list will be stored with variable devlist as either a input or output device. If no output variable is provided, the devices will be displayed.

Inputs

None

Outputs

devlist - a structure containing the midi device information

Examples

Display the known devices of the system.

> mididevinfo

MIDI devices available
ID Direction Interface  Name
 0 output    Alsa       Midi Through:Midi Through Port-0 14:0
 1 output    Alsa       Ensoniq AudioPCI:ES1371 16:0
 2 output    Alsa       SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0
 3 input     Alsa       Midi Through:Midi Through Port-0 14:0
 4 input     Alsa       Ensoniq AudioPCI:ES1371 16:0
 5 input     Alsa       SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 

Assign variable mididevices with the values from the known devices

> mididevices = mididevinfo

mididevices =
 scalar structure containing the fields:
   input =
   {
     [1,1] =
       scalar structure containing the fields:
         Name = SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0
         Interface = Alsa
         ID =  0
   }
   output =
   {
     [1,1] =
       scalar structure containing the fields:
         Name = SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0
         Interface = Alsa
         ID =  1
   }

See also: mididevice.

Package: audio