All Packages Class Hierarchy This Package Previous Next Index
Class com.nosuch.midi.MidiAction
java.lang.Object
|
+----com.nosuch.midi.MidiAction
- public class MidiAction
- extends Object
MidiAction is an interface for the callbacks done by MidiFsm.
-
MidiAction()
-
-
channelPressure(int, int)
- This is called when a channel pressure message is received.
-
controller(int, int, int)
- This is called when a controller message is received.
-
eox()
- This is called when an eox (end of sysex) message is received.
-
midiContinue()
- This is called when a continue message received.
-
off(int, int, int)
- This is called when a note-off message is received.
-
on(int, int, int)
- This is called when a note-on message is received.
-
pitchBend(int, int, int)
- This is called when a pitchbend message is received.
-
position(int, int)
- This is called when a song position pointer message is received.
-
pressure(int, int, int)
- This is called when a pressure message is received.
-
program(int, int)
- This is called when a program change message is received.
-
reset()
- This is called when a reset message received.
-
song(int)
- This is called when a song message is received.
-
start()
- This is called when a start message received.
-
stop()
- This is called when a stop message received.
-
sysex(byte[])
- This is called when a system exclusive message is received.
-
timing()
- This is called when a timing (clock) message received.
-
tune()
- This is called when a tune request message received.
MidiAction
public MidiAction()
on
public void on(int c,
int p,
int v)
- This is called when a note-on message is received.
- Parameters:
- c - channel (1-16)
- p - pitch (0-127)
- v - velocity (0-127)
off
public void off(int c,
int p,
int v)
- This is called when a note-off message is received.
- Parameters:
- c - channel (1-16)
- p - pitch (0-127)
- v - velocity (0-127)
controller
public void controller(int c,
int n,
int v)
- This is called when a controller message is received.
- Parameters:
- c - channel (1-16)
- n - controller number (0-127)
- v - controller value (0-127)
program
public void program(int c,
int p)
- This is called when a program change message is received.
- Parameters:
- c - channel (1-16)
- p - program number (0-127)
pressure
public void pressure(int c,
int p,
int v)
- This is called when a pressure message is received.
- Parameters:
- c - channel (1-16)
- p - pitch (0-127)
- v - value (0-127)
channelPressure
public void channelPressure(int c,
int p)
- This is called when a channel pressure message is received.
- Parameters:
- c - channel (1-16)
- p - value (0-127)
pitchBend
public void pitchBend(int c,
int msb,
int lsb)
- This is called when a pitchbend message is received.
- Parameters:
- c - channel (1-16)
- msb - most significant byte (0-127)
- lsb - least significant byte (0-127)
sysex
public void sysex(byte bytes[])
- This is called when a system exclusive message is received.
- Parameters:
- bytes - array of bytes containing message
position
public void position(int b1,
int b2)
- This is called when a song position pointer message is received.
song
public void song(int v)
- This is called when a song message is received.
- Parameters:
- v - value
reset
public void reset()
- This is called when a reset message received.
timing
public void timing()
- This is called when a timing (clock) message received.
start
public void start()
- This is called when a start message received.
stop
public void stop()
- This is called when a stop message received.
midiContinue
public void midiContinue()
- This is called when a continue message received.
tune
public void tune()
- This is called when a tune request message received.
eox
public void eox()
- This is called when an eox (end of sysex) message is received.
All Packages Class Hierarchy This Package Previous Next Index