## Parameter mapping

- **Logarithmic** controls for frequency and time: EQ/filter/cutoff/pitch frequency, EQ bandwidth, compressor/expander attack, release and ratio, synth attack/decay/release, LFO speed. Each octave must get the same visual size.
  - Example: `freq = exp(log(fMin) + pos * (log(fMax) - log(fMin)))`, where `pos` is 0..1.
- **Volume controls are neither linear nor logarithmic.** Use a cubic curve:
  `amplitude = pos^3 * 3.162278` (`pos` is 0..1). This allows +10 dB boost, puts 0 dB at `pos = 0.681292`, and lets the control fully reach silence (-inf).
  - Use this for mixer faders/knobs, synth/amp volumes, compressor/gate thresholds and synth sustain levels.
  - Exception: relative gain controls with a limited dB range (e.g. -12..+12 dB) should be linear in dB.
- **Always allow boost.** Volume controls should offer 10-20 dB above 0 dB, not just -inf..0 dB.
- **Pan with 3 dB compensation.** A signal panned hard left/right is 3 dB louder in that side than when centered. Use a square-root pan law, e.g. `L = sqrt(1 - p)`, `R = sqrt(p)`.

## Level meters

- Use the same cubic (`x^3`) scale as volume controls, so levels down to -inf can be shown.
- Headroom: for hard-limited outputs (soundcard, CD, mp3) just show whether clipping happened. For internal floating-point signals, show about 10-12 dB above 0 dB, with red/yellow warning colors above 0 dB.
- Add peak hold (steady marker at the highest peak in the last ~500 ms).
- If there is room, show the peak value in dB as a number.
- Optionally overlay the RMS level (no peak hold needed for RMS).

## FFT / spectrum displays

- Use a **logarithmic frequency scale** by default (linear only as an option).
- Weight by **pink noise** by default (not white noise): compensate each band by 1/frequency so pink noise shows as a horizontal line. Balanced music then appears roughly flat, which is the most useful view for music production.

## General

- User interfaces should be time independant, i.e. the same sequence of actions, when performed in the same order, should always give the same result regardless of how fast or slow these are performed. The only acceptable exception from this rule is double-click.
- For curly brace languages use Allman style brace formatting, and indent using tabs size 4.
