|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthemidibus.PApplet
public class PApplet
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
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 |
|---|
public PApplet()
| Method Detail |
|---|
public void controllerChange(int channel,
int number,
int value)
channel - the channel on which the ContollerChange arrivednumber - the controller number associated with the ContollerChangevalue - the controller value associated with the ContollerChangecontrollerChange(int channel, int pitch, int velocity, String bus_name)
public void controllerChange(int channel,
int number,
int value,
java.lang.String bus_name)
channel - the channel on which the ContollerChange arrivednumber - the controller number associated with the ContollerChangevalue - the controller value associated with the ContollerChangebus_name - the name of MidiBus which recieved the ContollerChangecontrollerChange(int channel, int pitch, int velocity)public void midiMessage(javax.sound.midi.MidiMessage message)
message - the MidiMessage recievedmidiMessage(MidiMessage message, String bus_name)
public void midiMessage(javax.sound.midi.MidiMessage message,
java.lang.String bus_name)
message - the MidiMessage recievedbus_name - the name of MidiBus which recieved the MIDI messagemidiMessage(MidiMessage message)
public void noteOff(int channel,
int pitch,
int velocity)
channel - the channel on which the NoteOff arrivedpitch - the pitch associated with the NoteOffvelocity - the velocity associated with the NoteOffnoteOff(int channel, int pitch, int velocity, String bus_name)
public void noteOff(int channel,
int pitch,
int velocity,
java.lang.String bus_name)
channel - the channel on which the NoteOff arrivedpitch - the pitch associated with the NoteOffvelocity - the velocity associated with the NoteOffbus_name - the name of MidiBus which recieved the NoteOffnoteOff(int channel, int pitch, int velocity)
public void noteOn(int channel,
int pitch,
int velocity)
channel - the channel on which the NoteOn arrivedpitch - the pitch associated with the NoteOnvelocity - the velocity associated with the NoteOnnoteOn(int channel, int pitch, int velocity, String bus_name)
public void noteOn(int channel,
int pitch,
int velocity,
java.lang.String bus_name)
channel - the channel on which the NoteOn arrivedpitch - the pitch associated with the NoteOnvelocity - the velocity associated with the NoteOnbus_name - the name of MidiBus which recieved the NoteOnnoteOn(int channel, int pitch, int velocity)public void rawMidi(byte[] data)
data - the raw data associated with the MIDI messagerawMidi(byte[] data, String bus_name)
public void rawMidi(byte[] data,
java.lang.String bus_name)
data - the raw data associated with the MIDI messagebus_name - the name of MidiBus which recieved the MIDI messagerawMidi(byte[] data)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||