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

Render a MIDI file to a WAV. No audio device is opened.

    mix tuning_fork.render song.mid
    mix tuning_fork.render song.mid --out take.wav --bpm 96 --gain 0.12
    mix tuning_fork.render drums.mid --drums --loops 4

A count of clipped samples is reported when there is one.

## Options

  * `--out PATH` — where to write. Defaults to the input with a `.wav` extension
  * `--bpm N` — play at this tempo, ignoring the file
  * `--gain N` — level per note, default 0.2. Lower it for dense music
  * `--drum-gain N` — the kit's level against everything else, default 1.0
  * `--loops N` — repeat the rendered audio N times, joined end to end
  * `--reverb N` — room size, 0.0 to 1.0, at a mix of 0.22. Off by default
  * `--drums` — every channel is percussion
  * `--drum-channels 0,9` — exactly which channels are percussion
  * `--no-guess` — only channel 10, as General MIDI says. Otherwise it is guessed
  * `--plain` — one voice for everything, rather than one per instrument
  * `--mono` — one channel out
  * `--rate N` — samples per second, default 44100
  * `--normalise N` — bring the result to this RMS afterwards
  * `--quiet` — say nothing unless something is wrong

---

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