API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sound.midi. MidiFileFormat View Source
Author(s)
Kara Kytle
Florian Bomers
Since
Version
1.18, 05/11/17
Serial
Hierarchy
 Object
      MidiFileFormat
Implements
Subclasses
Description
public class MidiFileFormat
  A MidiFileFormat object encapsulates a MIDI file's type, as well as its length and timing information.
Constructors
public MidiFileFormat (int type, float divisionType, int resolution, int bytes, long microseconds)
  Constructs a MidiFileFormat.
public MidiFileFormat (int type, float divisionType, int resolution, int bytes, long microseconds, Map<String, Object> properties)
  Construct a MidiFileFormat with a set of properties.
Methods
Hide/Show inherited methods
public int getByteLength ()
  Obtains the length of the MIDI file, expressed in 8-bit bytes.
public float getDivisionType ()
  Obtains the timing division type for the MIDI file.
public long getMicrosecondLength ()
  Obtains the length of the MIDI file, expressed in microseconds.
public Object getProperty (String key)
  Obtain the property value specified by the key.
public int getResolution ()
  Obtains the timing resolution for the MIDI file.
public int getType ()
  Obtains the MIDI file type.
public Map<String, Object> properties ()
  Obtain an unmodifiable map of properties.
Fields
Hide/Show inherited fields
protected int byteLength
The length of the MIDI file in bytes.
protected float divisionType
  The division type of the MIDI file.
protected long microsecondLength
The duration of the MIDI file in microseconds.
protected int resolution
The timing resolution of the MIDI file.
protected int type
The type of MIDI file.
publicfinalstatic int UNKNOWN_LENGTH = "-1"
  Represents unknown length.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar