abstract class Haematite::SequencedFile

Overview

Represents a file containing a sequence of events that are compatible with MIDI.

Direct Known Subclasses

Defined in:

haematite/sequencedfile.cr

Constructors

Instance Method Summary

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.


def messages : Array(Message) #

The Messages or events for this sequence.


def times : Array(Int64) #

The event times for this sequence.