A MIDI file is read and returned in form of a structured data frame containing
most event information (minus some meta events and minus all system events).
For details about the represented information see the reference given below.
Usage
readMidi(file)
Value
A data frame consisting of columns
time
Time or delta-time of the events, depending on the MIDI format.
event
A factor indicating the event.
type
An integer indicating the type of a “meta event”, otherwise NA.
channel
The channel number or NA if not applicable.
parameter1
First parameter of an event, e.g. a representation for a note in a “note event”.
parameter2
Second parameter of an event.
parameterMetaSystem
Information in a “meta event”, currently all meta events are converted to a character representation (of hex, if all fails), but future versions may have more appropriate representations.
track
The track number.
Please see the given reference about the MIDI file format about details.