name
MidiIO
import promidi.*;

MidiIO midiIO;

void setup(){
  midiIO = MidiIO.getInstance(this);
  println("printPorts of midiIO");
  midiIO.printDevices();
  println();
  
  /*
   * Does the same like printDevices by 
   * printing the input and output devices
   */
  println("printDevices recoded 1");
  midiIO.printInputDevices();
  midiIO.printOutputDevices();
  println("<<<<<<<<<   >>>>>>>>>>>>>>>>>>>>>");
  println();
  
  /*
   * Does the same like printDevices by iterating
   * over the devices and print out their names
   */
  println("printDevices recoded 2");
  println("<< inputs: >>>>>>>>>>>>>>>>>>>>>>");
  for(int i = 0; i < midiIO.numberOfInputDevices();i++){
    println("input  "+nf(i,2)+": "+midiIO.getInputDeviceName(i));
  }
  println("<< outputs: >>>>>>>>>>>>>>>>>>>>>");
  for(int i = 0; i < midiIO.numberOfOutputDevices();i++){
    println("output "+nf(i,2)+": "+midiIO.getOutputDeviceName(i));
  }
  println("<<<<<<<<<   >>>>>>>>>>>>>>>>>>>>>");
}

description
MidiIO is the base class for managing the available midi ports. It provides you with methods to get information on your ports and to open them. There are various changes on the new proMIDI version in handling inputs and outputs. Instead of opening a complete port you can now open inputs and outputs with a channel number and a port name or number. To start use the printDevices method to get all devices available on your system.
constructors
none available
methods
Use this Methode to close an input. You can close it with its number or name. There is no need of closing the ports, as promidi closes them when the applet is closed.
Use this method to get the name of an input device.
Use this method to get instance of MidiIO.
Use this Methode to open an output.
Use this method to get the name of an output device.
Use this method to get the number of available midi input devices.
Use this method to get the number of available midi output devices.
Use this Methode to open an input device.
Plugs a method to handle incoming MidiEvents.
Use this method for a simple trace of all midi devices.
Use this method for a simple trace of all available midi input devices.
Use this method for a simple trace of all available midi output devices.
usage
Web & Application
related