danger.audio
Class MidiReader
java.lang.Object
danger.audio.MidiReader
public class MidiReader
- extends Object
Parse a standard Midi file. Implement on* functions to parse file.
OS 2.3
|
Method Summary |
void |
onAfterTouch(byte channel,
byte data1,
byte data2,
int time)
|
void |
onArbitrary(byte[] data,
int time)
|
void |
onChannelPressure(byte channel,
byte velocity,
int time)
|
void |
onControlChange(byte channel,
byte controlNumber,
byte controlValue,
int time)
|
void |
onEndTrack(int time)
|
void |
onError(String message)
|
void |
onHeader(int format,
int numberTracks,
int division)
|
void |
onKeySignature(int sharpsFlats,
int minors,
int time)
|
void |
onMetaEndOfTrack(int time)
|
void |
onMetaMisc(byte type,
byte[] data,
int time)
|
void |
onMetaSequenceNumber(int number,
int time)
|
void |
onMetaSequenceSpecific(byte type,
byte[] data,
int time)
|
void |
onMetaText(byte type,
byte[] message,
int time)
|
void |
onNewTrack()
|
void |
onNoteOff(byte channel,
byte note,
byte velocity,
int time)
|
void |
onNoteOn(byte channel,
byte note,
byte velocity,
int time)
|
void |
onPitchBend(byte channel,
byte msb,
byte lsb,
int time)
|
void |
onProgramChange(byte channel,
byte program,
int time)
|
void |
onSmpteOffset(byte hr,
byte mn,
byte se,
byte fr,
byte ff,
int time)
|
void |
onSysex(byte[] data,
int time)
|
void |
onTempo(int tempo,
int time)
|
void |
onTimeSignature(byte nn,
byte dd,
byte cc,
byte bb,
int time)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MidiReader
public MidiReader(byte[] midiData)
onHeader
public void onHeader(int format,
int numberTracks,
int division)
onNewTrack
public void onNewTrack()
onEndTrack
public void onEndTrack(int time)
onNoteOn
public void onNoteOn(byte channel,
byte note,
byte velocity,
int time)
onNoteOff
public void onNoteOff(byte channel,
byte note,
byte velocity,
int time)
onAfterTouch
public void onAfterTouch(byte channel,
byte data1,
byte data2,
int time)
onControlChange
public void onControlChange(byte channel,
byte controlNumber,
byte controlValue,
int time)
onPitchBend
public void onPitchBend(byte channel,
byte msb,
byte lsb,
int time)
onProgramChange
public void onProgramChange(byte channel,
byte program,
int time)
onChannelPressure
public void onChannelPressure(byte channel,
byte velocity,
int time)
onSysex
public void onSysex(byte[] data,
int time)
onArbitrary
public void onArbitrary(byte[] data,
int time)
onMetaMisc
public void onMetaMisc(byte type,
byte[] data,
int time)
onMetaSequenceSpecific
public void onMetaSequenceSpecific(byte type,
byte[] data,
int time)
onMetaSequenceNumber
public void onMetaSequenceNumber(int number,
int time)
onMetaText
public void onMetaText(byte type,
byte[] message,
int time)
onMetaEndOfTrack
public void onMetaEndOfTrack(int time)
onTimeSignature
public void onTimeSignature(byte nn,
byte dd,
byte cc,
byte bb,
int time)
onSmpteOffset
public void onSmpteOffset(byte hr,
byte mn,
byte se,
byte fr,
byte ff,
int time)
onTempo
public void onTempo(int tempo,
int time)
onKeySignature
public void onKeySignature(int sharpsFlats,
int minors,
int time)
onError
public void onError(String message)