MIDISynth.Keyboard.play
You're seeing just the function
play
, go back to MIDISynth.Keyboard module for more information.
Specs
play( GenServer.server(), MIDISynth.Command.note(), MIDISynth.Command.duration(), MIDISynth.Command.velocity(), MIDISynth.Command.channel() ) :: :ok
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