| 
 | JavaTM 2 Platform Std. Ed. v1.3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javax.sound.midi.MidiFileFormat
A MidiFileFormat object encapsulates a MIDI file's
 type, as well as its length and timing information.
MidiSystem.getMidiFileFormat(java.io.File), 
Sequencer.setSequence(java.io.InputStream stream)| Field Summary | |
| protected  int | byteLengthThe length of the MIDI file in bytes. | 
| protected  float | divisionTypeThe division type of the MIDI file. | 
| protected  long | microsecondLengthThe duration of the MIDI file in microseconds. | 
| protected  int | resolutionThe timing resolution of the MIDI file. | 
| protected  int | typeThe type of MIDI file. | 
| static int | UNKNOWN_LENGTHRepresents unknown length. | 
| Constructor Summary | |
| MidiFileFormat(int type,
               float divisionType,
               int resolution,
               int bytes,
               long microseconds)Constructs a MidiFileFormat. | |
| Method Summary | |
|  int | getByteLength()Obtains the length of the MIDI file, expressed in 8-bit bytes. | 
|  float | getDivisionType()Obtains the timing division type for the MIDI file. | 
|  long | getMicrosecondLength()Obtains the length of the MIDI file, expressed in microseconds. | 
|  int | getResolution()Obtains the timing resolution for the MIDI file. | 
|  int | getType()Obtains the MIDI file type. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final int UNKNOWN_LENGTH
protected int type
protected float divisionType
Sequence.PPQ, 
Sequence.SMPTE_24, 
Sequence.SMPTE_25, 
Sequence.SMPTE_30DROP, 
Sequence.SMPTE_30protected int resolution
protected int byteLength
protected long microsecondLength
| Constructor Detail | 
public MidiFileFormat(int type,
                      float divisionType,
                      int resolution,
                      int bytes,
                      long microseconds)
MidiFileFormat.type - the MIDI file typedivisionType - the timing division type (PPQ or one of the SMPTE types)resolution - the timing resolutionbytes - the length of the MIDI file in bytesmicroseconds - the duration of the file in microsecondsUNKNOWN_LENGTH, 
Sequence.PPQ, 
Sequence.SMPTE_24, 
Sequence.SMPTE_25, 
Sequence.SMPTE_30DROP, 
Sequence.SMPTE_30| Method Detail | 
public int getType()
public float getDivisionType()
Sequence.Sequence(float, int), 
Sequence.PPQ, 
Sequence.SMPTE_24, 
Sequence.SMPTE_25, 
Sequence.SMPTE_30DROP, 
Sequence.SMPTE_30, 
Sequence.getDivisionType()public int getResolution()
getDivisionType(), 
Sequence.getResolution()public int getByteLength()
public long getMicrosecondLength()
Sequence.getMicrosecondLength(), 
getByteLength()| 
 | JavaTM 2 Platform Std. Ed. v1.3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates.    All rights reserved.