public MidiFileFormat(int type,
float divisionType,
int resolution,
int bytes,
long microseconds) {
this.type = type;
this.divisionType = divisionType;
this.resolution = resolution;
this.byteLength = bytes;
this.microsecondLength = microseconds;
this.properties = null;
}
Constructs a MidiFileFormat. Parameters:
type - the MIDI file type (0, 1, or 2)
divisionType - the timing division type (PPQ or one of the SMPTE types)
resolution - the timing resolution
bytes - the length of the MIDI file in bytes, or UNKNOWN_LENGTH if not known
microseconds - the duration of the file in microseconds, or UNKNOWN_LENGTH if not known
Also see:
- UNKNOWN_LENGTH
- Sequence#PPQ
- Sequence#SMPTE_24
- Sequence#SMPTE_25
- Sequence#SMPTE_30DROP
- Sequence#SMPTE_30
|
public MidiFileFormat(int type,
float divisionType,
int resolution,
int bytes,
long microseconds,
Map properties) {
this(type, divisionType, resolution, bytes, microseconds);
this.properties = new HashMap< String, Object >(properties);
}
Construct a MidiFileFormat with a set of properties. Parameters:
type - the MIDI file type (0, 1, or 2)
divisionType - the timing division type
(PPQ or one of the SMPTE types)
resolution - the timing resolution
bytes - the length of the MIDI file in bytes,
or UNKNOWN_LENGTH if not known
microseconds - the duration of the file in microseconds,
or UNKNOWN_LENGTH if not known
properties - a Map<String,Object> object
with properties
Also see:
- UNKNOWN_LENGTH
- Sequence#PPQ
- Sequence#SMPTE_24
- Sequence#SMPTE_25
- Sequence#SMPTE_30DROP
- Sequence#SMPTE_30
- since:
1.5 -
|