themidibus
Class PApplet

java.lang.Object
  extended by themidibus.PApplet

public class PApplet
extends java.lang.Object

PApplet is your processing application or sketch. In it you can implement the following methods which will be called whenerever a MidiBus object attached to the PApplet, recieves a new incomming MIDI message of the appropriate type.

Note: This page is a dummy page for documentation of the MidiBus' extention of the regular PApplet's functionality, for the full documentation of PApplet please visits the Processing javadocs

Version:
005
Author:
Severin Smith
See Also:
MidiBus, MidiListener, RawMidiListener, StandardMidiListener, SimpleMidiListener

Constructor Summary
PApplet()
           
 
Method Summary
 void controllerChange(int channel, int number, int value)
          Is passed the channel, controller number and contoller value associated with every new ContollerChange MIDI message recieved by a MidiBus attached to this applet.
 void controllerChange(int channel, int number, int value, java.lang.String bus_name)
          Is passed the channel, pitch and velocity associated with every new NoteOff MIDI message recieved by a MidiBus attached to this applet and the name of the MidiBus which recieved the message.
 void midiMessage(javax.sound.midi.MidiMessage message)
          Is passed the raw MidiMessage associated with every new MIDI message recieved by a MidiBus attached to this applet.
 void midiMessage(javax.sound.midi.MidiMessage message, java.lang.String bus_name)
          Is passed the raw MidiMessage associated with every new MIDI message recieved by a MidiBus attached to this applet and the name of the MidiBus which recieved the message.
 void noteOff(int channel, int pitch, int velocity)
          Is passed the channel, pitch and velocity associated with every new NoteOff MIDI message recieved by a MidiBus attached to this applet.
 void noteOff(int channel, int pitch, int velocity, java.lang.String bus_name)
          Is passed the channel, pitch and velocity associated with every new NoteOff MIDI message recieved by a MidiBus attached to this applet and the name of the MidiBus which recieved the message.
 void noteOn(int channel, int pitch, int velocity)
          Is passed the channel, pitch and velocity associated with every new NoteOn MIDI message recieved by a MidiBus attached to this applet.
 void noteOn(int channel, int pitch, int velocity, java.lang.String bus_name)
          Is passed the channel, pitch and velocity associated with every new NoteOn MIDI message recieved by a MidiBus attached to this applet and the name of the MidiBus which recieved the message.
 void rawMidi(byte[] data)
          Is passed the raw data associated with every new MIDI message recieved by a MidiBus attached to this applet.
 void rawMidi(byte[] data, java.lang.String bus_name)
          Is passed the raw data associated with every new MIDI message recieved by a MidiBus attached to this applet and the name of the MidiBus which recieved the message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PApplet

public PApplet()
Method Detail

controllerChange

public void controllerChange(int channel,
                             int number,
                             int value)
Is passed the channel, controller number and contoller value associated with every new ContollerChange MIDI message recieved by a MidiBus attached to this applet.

Parameters:
channel - the channel on which the ContollerChange arrived
number - the controller number associated with the ContollerChange
value - the controller value associated with the ContollerChange
See Also:
controllerChange(int channel, int pitch, int velocity, String bus_name)

controllerChange

public void controllerChange(int channel,
                             int number,
                             int value,
                             java.lang.String bus_name)
Is passed the channel, pitch and velocity associated with every new NoteOff MIDI message recieved by a MidiBus attached to this applet and the name of the MidiBus which recieved the message.

Parameters:
channel - the channel on which the ContollerChange arrived
number - the controller number associated with the ContollerChange
value - the controller value associated with the ContollerChange
bus_name - the name of MidiBus which recieved the ContollerChange
See Also:
controllerChange(int channel, int pitch, int velocity)

midiMessage

public void midiMessage(javax.sound.midi.MidiMessage message)
Is passed the raw MidiMessage associated with every new MIDI message recieved by a MidiBus attached to this applet.

Parameters:
message - the MidiMessage recieved
See Also:
midiMessage(MidiMessage message, String bus_name)

midiMessage

public void midiMessage(javax.sound.midi.MidiMessage message,
                        java.lang.String bus_name)
Is passed the raw MidiMessage associated with every new MIDI message recieved by a MidiBus attached to this applet and the name of the MidiBus which recieved the message.

Parameters:
message - the MidiMessage recieved
bus_name - the name of MidiBus which recieved the MIDI message
See Also:
midiMessage(MidiMessage message)

noteOff

public void noteOff(int channel,
                    int pitch,
                    int velocity)
Is passed the channel, pitch and velocity associated with every new NoteOff MIDI message recieved by a MidiBus attached to this applet.

Parameters:
channel - the channel on which the NoteOff arrived
pitch - the pitch associated with the NoteOff
velocity - the velocity associated with the NoteOff
See Also:
noteOff(int channel, int pitch, int velocity, String bus_name)

noteOff

public void noteOff(int channel,
                    int pitch,
                    int velocity,
                    java.lang.String bus_name)
Is passed the channel, pitch and velocity associated with every new NoteOff MIDI message recieved by a MidiBus attached to this applet and the name of the MidiBus which recieved the message.

Parameters:
channel - the channel on which the NoteOff arrived
pitch - the pitch associated with the NoteOff
velocity - the velocity associated with the NoteOff
bus_name - the name of MidiBus which recieved the NoteOff
See Also:
noteOff(int channel, int pitch, int velocity)

noteOn

public void noteOn(int channel,
                   int pitch,
                   int velocity)
Is passed the channel, pitch and velocity associated with every new NoteOn MIDI message recieved by a MidiBus attached to this applet.

Parameters:
channel - the channel on which the NoteOn arrived
pitch - the pitch associated with the NoteOn
velocity - the velocity associated with the NoteOn
See Also:
noteOn(int channel, int pitch, int velocity, String bus_name)

noteOn

public void noteOn(int channel,
                   int pitch,
                   int velocity,
                   java.lang.String bus_name)
Is passed the channel, pitch and velocity associated with every new NoteOn MIDI message recieved by a MidiBus attached to this applet and the name of the MidiBus which recieved the message.

Parameters:
channel - the channel on which the NoteOn arrived
pitch - the pitch associated with the NoteOn
velocity - the velocity associated with the NoteOn
bus_name - the name of MidiBus which recieved the NoteOn
See Also:
noteOn(int channel, int pitch, int velocity)

rawMidi

public void rawMidi(byte[] data)
Is passed the raw data associated with every new MIDI message recieved by a MidiBus attached to this applet.

Parameters:
data - the raw data associated with the MIDI message
See Also:
rawMidi(byte[] data, String bus_name)

rawMidi

public void rawMidi(byte[] data,
                    java.lang.String bus_name)
Is passed the raw data associated with every new MIDI message recieved by a MidiBus attached to this applet and the name of the MidiBus which recieved the message.

Parameters:
data - the raw data associated with the MIDI message
bus_name - the name of MidiBus which recieved the MIDI message
See Also:
rawMidi(byte[] data)