|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.RandomAccessFile com.softsynth.midifile.MIDIFileOutput
public class MIDIFileOutput
MIDI File Writer.
Write tracks and events to a file.
MIDIFileInputStream
Constructor Summary | |
---|---|
MIDIFileOutput(java.io.File file)
|
|
MIDIFileOutput(java.lang.String fileName)
|
Method Summary | |
---|---|
void |
finishTrack()
|
static void |
main(java.lang.String[] args)
|
void |
startTrack()
Start chunk for next track. |
void |
writeEndOfTrack(int time)
Every track must end with an EndOfTrack event. |
void |
writeEvent(int time,
int command,
int data1,
int data2)
Write duration and command followed by appropriate number of bytes to file. |
void |
writeHeader(int format,
int numTracks,
short division)
Write standard MIDI File header. |
void |
writeMetaEvent(int time,
int type,
byte[] b)
The duration, followed by 0xFF, followed by the type of MetaEvent, followed by the length of the array, followed by the array itself will be written to the file. |
void |
writeSysExEvent(int time,
byte[] b)
The duration, followed by 0xF0, followed by the length of the array, followed by the array itself will be written to the file. |
void |
writeSysExEventF7(int time,
byte[] b)
The duration, followed by 0xF7, followed by the length of the array, followed by the array itself will be written to the file. |
void |
writeTime(int time)
Write time for an event. |
void |
writeVariableLengthQuantity(int val)
|
Methods inherited from class java.io.RandomAccessFile |
---|
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MIDIFileOutput(java.io.File file) throws java.io.IOException
java.io.IOException
public MIDIFileOutput(java.lang.String fileName) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void writeVariableLengthQuantity(int val) throws java.io.IOException
java.io.IOException
public void writeHeader(int format, int numTracks, short division) throws java.io.IOException
java.io.IOException
public void startTrack() throws java.io.IOException
java.io.IOException
public void writeEndOfTrack(int time) throws java.io.IOException
java.io.IOException
public void finishTrack() throws java.io.IOException
java.io.IOException
public void writeTime(int time) throws java.io.IOException
java.io.IOException
public void writeSysExEvent(int time, byte[] b) throws java.io.IOException
java.io.IOException
public void writeSysExEventF7(int time, byte[] b) throws java.io.IOException
java.io.IOException
public void writeMetaEvent(int time, int type, byte[] b) throws java.io.IOException
java.io.IOException
public void writeEvent(int time, int command, int data1, int data2) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |