MidiFileFormatpublic class MidiFileFormat extends Object
Fields Summary |
---|
public static final int | UNKNOWN_LENGTH | protected int | byteLength | protected float | divisionType | protected long | microsecondLength | protected int | resolution | protected int | type | private HashMap | properties |
Constructors Summary |
---|
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 = new HashMap<String, Object>();
| public MidiFileFormat(int type, float divisionType, int resolution, int bytes, long microseconds, Map properties)
this.type = type;
this.divisionType = divisionType;
this.resolution = resolution;
this.byteLength = bytes;
this.microsecondLength = microseconds;
this.properties = new HashMap<String, Object>();
this.properties.putAll(properties);
|
Methods Summary |
---|
public int | getByteLength()
return byteLength;
| public float | getDivisionType()
return divisionType;
| public long | getMicrosecondLength()
return microsecondLength;
| public java.lang.Object | getProperty(java.lang.String key)
return properties.get(key);
| public int | getResolution()
return resolution;
| public int | getType()
return type;
| public java.util.Map | properties()
return Collections.unmodifiableMap(properties);
|
|