MIDISynth.Keyboard.play

You're seeing just the function play, go back to MIDISynth.Keyboard module for more information.
Link to this function

play(server, note, duration, velocity \\ 127, channel \\ 0)

View Source

Specs

Play a note

This is a utility method for pressing a note down and then releasing it after a duration.

Example

iex> {:ok, synth} = MIDISynth.start_link([]) iex> MIDISynth.Keyboard.play(synth, 60, 100) :ok iex> MIDISynth.Keyboard.play(synth, 60, 100, 80) :ok