- [Class]
midi-file
A subclass of midi-stream
that
implements input and output to MIDI files. A
midi-file
is automatically created when you specify
a file with a ".midi" or ".mid" extension.
midi-file
supports the following slot initializations:
:versioning
boolean- If true then each time the file is written its output file name will include a version number -n appended to its name, i.e. test-1.mid, test-2.mid and so on. The version number is automatically incremented each time the file is written and insures that multiple "takes" of the same file can be generated without overwriting the contents of earlier versions.
:divisions
integer- The number of divisions per quarter note. Defaults to 480.
:tempo
number- The MIDI tempo of the file. Defaults to the tempo of 60 bpm.
:timesig
(numerator denominator)- The time signature for the file. Defaults to (4 4). The time signature list may contain up to four values: (numerator denominator [clocks-per-quarter] [32nds])
See midi-stream and play for additional keyword initializations.
See Also:
audio-file
[Class]clm-file
[Class]cmn-file
[Class]io
[Macro]midi-stream
[Class]midishare-stream
[Class]play
[Function]player-stream
[Class]sco-file
[Class]