Class Midi.File

A MIDI file.

Constructors

File(IO.File file)
File(string path)

Properties

track tracks as an array of Midi.Sequence objects.
ppq pulse per quarter note.
type MIDI file type 0, 1 or 2.

Methods

save(IO.File file) saves this file as SMF to the given IO.File.
save(string path) saves this file as SMF to the given path location.
tracks() the number of tracks in the file.

Constructor Documentation


File(IO.File file)

Parameters


File(string path)

Parameters

Property Documentation


array track

Tracks as an array of Midi.Sequence objects.


integer ppq

Pulse per quarter note.


integer type

MIDI file type 0, 1 or 2.

Method Documentation


void save(IO.File file)

Saves this file as SMF to the given IO.File.

Parameters


void save(string path)

Saves this file as SMF to the given path location.

Parameters


integer tracks()

The number of tracks in the file.

Returns



Creative Commons Logo This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.