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 trigger things in processing after incoming NoteOns, it returns true if their was a new Noteon after the last call.
   
  Syntax
name.triggered(channel)
    
   
  Parameters
channel   int: Number of the Midichannel (0-15)
   
  Returns boolean
   
  Usage Application
   
  Related getNote()
getController()