midi_synth v0.1.0 MidiSynth

Play music in Elixir!

Link to this section Summary

Functions

Change the current program (e.g., the current instrument)

Send a raw MIDI command to the synthesizer

Play a note

Link to this section Functions

Link to this function change_program(prog)

Change the current program (e.g., the current instrument).

Send a raw MIDI command to the synthesizer.

Examples

iex> MidiSynth.midi(<<0x90, 60, 127>>)
:ok
Link to this function play(note, duration)

Play a note.

Examples

iex> MidiSynth.play(60, 100)
:ok