A
MidiFileFormat
object encapsulates a MIDI file's type, as well as its length and timing information.
A MidiFileFormat
object can include a set of properties. A property is a pair of key and value: the key is of type String
, the associated property value is an arbitrary object. Properties specify additional informational meta data (like a author, or copyright). Properties are optional information, and file reader and file writer implementations are not required to provide or recognize properties.
The following table lists some common properties that should be used in implementations:
MIDI File Format Properties Property key | Value type | Description |
"author" | {@link java.lang.String String} | name of the author of this file |
"title" | {@link java.lang.String String} | title of this file |
"copyright" | {@link java.lang.String String} | copyright message |
"date" | {@link java.util.Date Date} | date of the recording or release |
"comment" | {@link java.lang.String String} | an arbitrary text |
@see MidiSystem#getMidiFileFormat(java.io.File)
@see Sequencer#setSequence(java.io.InputStream stream)
@author Kara Kytle
@author Florian Bomers