midi-file [Class]

An event stream class implementing MIDI score files. This class is automatcally chosen when you specify a file with a .midi extension.

midi-file implemnts the following slots:

divisions {integer}
The number of divisions per quarter note. Defaults to 96.
timesig {list}
The time signature for the file. Defaults to (4 4). The time signature list may contain up to four values: (n d &optional clocks-per-quarter 32nds)
tempo {number}
The tempo of the file. Defaults to the standard MIDI tempo 120.

Stella's import command supports the following options for MIDI files:

start {number}
A start time in the file to start importing. Defaults to the beginning of the file.
end {number}
The end time in the file to stop importing. Defaults to the end of the file.
track {integer}
The track number to import. Defaults to 0.
container {name}
The container to place imported data in. If nil (the default) then the data is imported to a new thread named after the midi file.
note-type {note | pitch | degree}
Determines how MIDI key numbers in the file are represented in the imported data. Default to note.

See Also:

import, Importing and Receiving, MIDI, midi-port


Last Modified: 5-Mar-1998