midi_proto v0.1.0 MidiProto.Message protocol

Common behaviour for all MIDI message types.

Allows you to check the capabilities of a MIDI message or encode it into a message for transmission.

Link to this section Summary

Functions

Is the message a active sense message?

Is the message a channel pressure message?

Is the message a continue message?

Is the message a control change message?

Encode the message into a binary for sending.

Is the message a note-off message?

Is the message a note-on message?

Is the message a pitch bend message?

Is the message a polyphonic pressure message?

Is the message a program change message?

Is the message a realtime message?

Is the message a song position message?

Is the message a song select message?

Is the message a start message?

Is the message a stop message?

Is the message a system message?

Is the message a system reset message?

Is the message a time code quarter frame message?

Is the message a timing clock message?

Is the message a tune request message?

Link to this section Types

Link to this section Functions

Link to this function

active_sense?(message)

active_sense?(t()) :: boolean()

Is the message a active sense message?

Link to this function

channel_pressure?(message)

channel_pressure?(t()) :: boolean()

Is the message a channel pressure message?

Link to this function

continue?(message)

continue?(t()) :: boolean()

Is the message a continue message?

Link to this function

control_change?(message)

control_change?(t()) :: boolean()

Is the message a control change message?

Link to this function

encode(message)

encode(t()) :: binary()

Encode the message into a binary for sending.

Link to this function

note_off?(message)

note_off?(t()) :: boolean()

Is the message a note-off message?

Link to this function

note_on?(message)

note_on?(t()) :: boolean()

Is the message a note-on message?

Link to this function

pitch_bend?(message)

pitch_bend?(t()) :: boolean()

Is the message a pitch bend message?

Link to this function

polyphonic_pressure?(message)

polyphonic_pressure?(t()) :: boolean()

Is the message a polyphonic pressure message?

Link to this function

program_change?(message)

program_change?(t()) :: boolean()

Is the message a program change message?

Link to this function

realtime?(message)

realtime?(t()) :: boolean()

Is the message a realtime message?

Link to this function

song_position?(message)

song_position?(t()) :: boolean()

Is the message a song position message?

Link to this function

song_select?(message)

song_select?(t()) :: boolean()

Is the message a song select message?

Link to this function

start?(message)

start?(t()) :: boolean()

Is the message a start message?

Link to this function

stop?(message)

stop?(t()) :: boolean()

Is the message a stop message?

Link to this function

system?(message)

system?(t()) :: boolean()

Is the message a system message?

Link to this function

system_reset?(message)

system_reset?(t()) :: boolean()

Is the message a system reset message?

Link to this function

time_code_quarter_frame?(message)

time_code_quarter_frame?(t()) :: boolean()

Is the message a time code quarter frame message?

Link to this function

timing_clock?(message)

timing_clock?(t()) :: boolean()

Is the message a timing clock message?

Link to this function

tune_request?(message)

tune_request?(t()) :: boolean()

Is the message a tune request message?