# `mix tuning_fork.play`
[🔗](https://github.com/jaman/tuning_fork/blob/v0.1.11/tuning_fork_speaker/lib/mix/tasks/tuning_fork.play.ex#L1)

Play a MIDI file through this machine's speaker.

    mix tuning_fork.play song.mid
    mix tuning_fork.play loop.mid --loop --bpm 96
    mix tuning_fork.play song.mid --seconds 30

Press q, Escape or Ctrl-C to stop.

Requires an audio device; raises when there is none.

Options:

  * `--loop` — start again on reaching the end
  * `--seconds N` — stop after N seconds
  * `--bpm N` — play at this tempo, ignoring the file
  * `--gain N` — level per note, default 0.2
  * `--drum-gain N` — the kit's level against everything else, default 1.0
  * `--reverb N` — room size, 0.0 to 1.0. Off by default
  * `--drums` — every channel is percussion
  * `--drum-channels 0,9` — exactly which channels are percussion
  * `--no-guess` — only channel 10 is percussion. Otherwise it is guessed
  * `--plain` — one voice for everything, rather than one per instrument
  * `--mono` — one channel out
  * `--quiet` — say nothing unless something is wrong

---

*Consult [api-reference.md](api-reference.md) for complete listing*
