themidibus
Interface SimpleMidiListener

All Superinterfaces:
MidiListener

public interface SimpleMidiListener
extends MidiListener

A SimpleMidiListener can be notified of incomming NoteOn, NoteOff and ControllerChange MIDI messages, usually by a MidiBus object which it is connected to. Typically it would analyse and react to incomming MIDI messages in some useful way.

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

Method Summary
 void controllerChange(int channel, int number, int value)
          Objects notifying this SimpleMidiListener of a new ControllerChange MIDI message call this method.
 void noteOff(int channel, int pitch, int velocity)
          Objects notifying this SimpleMidiListener of a new NoteOff MIDI message call this method.
 void noteOn(int channel, int pitch, int velocity)
          Objects notifying this SimpleMidiListener of a new NoteOn MIDI message call this method.
 

Method Detail

noteOn

void noteOn(int channel,
            int pitch,
            int velocity)
Objects notifying this SimpleMidiListener of a new NoteOn MIDI message call this method.

Parameters:
channel - the channel on which the NoteOn arrived
pitch - the pitch associated with the NoteOn
velocity - the velocity associated with the NoteOn

noteOff

void noteOff(int channel,
             int pitch,
             int velocity)
Objects notifying this SimpleMidiListener of a new NoteOff MIDI message call this method.

Parameters:
channel - the channel on which the NoteOff arrived
pitch - the pitch associated with the NoteOff
velocity - the velocity associated with the NoteOff

controllerChange

void controllerChange(int channel,
                      int number,
                      int value)
Objects notifying this SimpleMidiListener of a new ControllerChange MIDI message call this method.

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