abstract class Haematite::SequencedFile
- Haematite::SequencedFile
- Reference
- Object
Overview
Represents a file containing a sequence of events that are compatible with MIDI.
Direct Known Subclasses
Defined in:
haematite/sequencedfile.crConstructors
-
.load(path : String | Path) : SequencedFile
Attempts to load a song from the file at
path
.
Instance Method Summary
-
#length : Int64
Returns the final event time for the MIDI.
-
#messages : Array(Message)
The
Message
s or events for this sequence. -
#times : Array(Int64)
The event times for this sequence.
Constructor Detail
def self.load(path : String | Path) : SequencedFile
#
Attempts to load a song from the file at path
. If the file is not a
supported format, this raises an UnsupportedFormatError
.
Instance Method Detail
def length : Int64
#
Returns the final event time for the MIDI. This is effectively its length in microseconds.