MIDIPlayer.Event (MIDIPlayer v0.1.0) View Source

Several musical events which can be converted to MIDI commands.

All timings are in milliseconds.

Link to this section Summary

Types

t()

A musical event.

Functions

Converts the event to a list of MIDI commands.

Link to this section Types

Specs

t() ::
  %MIDIPlayer.Event.Note{
    channel: term(),
    end_time: term(),
    start_time: term(),
    tone: term(),
    velocity: term()
  }
  | %MIDIPlayer.Event.ChangeProgram{
      channel: term(),
      program: term(),
      time: term()
    }

A musical event.

Link to this section Functions

Specs

convert(t()) :: [{non_neg_integer(), binary()}]

Converts the event to a list of MIDI commands.