|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MIDIFileListener
MIDI File Listener This class is called by the MIDI File Input Stream when it parses MIDI Files.
Method Summary | |
---|---|
void |
handleBeginTrack(int index)
Called at the beginning of each track |
void |
handleEndTrack(int index)
Called at the end of each track |
void |
handleEvent(int ticks,
int command,
int data1,
int data2)
Called when a MIDI Message event is encountered. |
void |
handleHeader(int format,
int numTracks,
short division)
Called when the header is parsed. |
void |
handleMetaEvent(int ticks,
int type,
byte[] b)
Called when a MetaEvent is encountered. |
void |
handleSysExF0(int ticks,
byte[] b)
Called when an F0 SysEx event is encountered. |
void |
handleSysExF7(int ticks,
byte[] b)
Called when an F7 SysEx event is encountered. |
Method Detail |
---|
void handleHeader(int format, int numTracks, short division)
format
- Format of file. 0, 1 or 2.numTracks
- division
- void handleBeginTrack(int index)
index
- Track index starting at zerovoid handleEndTrack(int index)
index
- Track index starting at zerovoid handleSysExF0(int ticks, byte[] b)
ticks
- MIDIFile time-stampb
- bytes read from file for SysEx. May be null.void handleSysExF7(int ticks, byte[] b)
ticks
- MIDIFile time-stampb
- bytes read from file for SysEx. May be null.void handleMetaEvent(int ticks, int type, byte[] b)
ticks
- MIDIFile time-stamptype
- MetaEvent type, from 0 to 127.b
- bytes read from file for SysEx. May be null.void handleEvent(int ticks, int command, int data1, int data2)
ticks
- MIDIFile time-stampcommand
- MIDI Command, eg. NOTE_ON.data1
- First data byte of message.data2
- Second optional data byte of message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |