Name
   
  Examples
MidiIn midiIn; 
 
void setup() 
{ 
  // Make a new MidiInputObject and open it
  midiIn = new MidiIn();
midiIn.showAvailableInputs();
midiIn.openInput(1);
size(127,127); } void loop() { if(midiIn.triggered(0)){ background(255);
line(0,midiIn.getNote(0), 127,midiIn.getNote(0)); line(midiIn.getVelocity(0),0, midiIn.getVelocity(0),127); } }

  Description Use this function to get the last played note of a certain Midichannel. If their was no note played it returns 0 otherwise the to the note corresponding int value (0-127);
   
  Syntax
name.getNote(channel)
    
   
  Parameters
channel   int: Number of the Midichannel (0-15)
   
  Returns int
   
  Usage Application
   
  Related getController()
getVelocity()