← f_ notebook · Mirrors · Color / Tone

f_dynamics, live ​

Follows the image the way an audio dynamics processor follows a signal: slew limiting, peak hold, noise gating, and compression on pixel luma.

The cell below steps the NumPy mirror that f_dynamics's tests are written against, in your browser. It is the NumPy mirror, not the Max patch, and it is not claimed to match the patch bit for bit.

f_dynamics · NumPy mirror (Pyodide) · not the Max patch
Downloads about 15 MB the first time (Python and NumPy).
  • mode picks the detector behavior: slew (one-pole rise/fall per channel), peak hold, gate/expander, or compressor/limiter.
  • attack ms sets how fast the follower or gain rises (0 means instant).
  • release ms sets how fast it falls back (0 means instant).
  • threshold is the luma level the gate and compressor act around (slew and peak ignore it).
  • knee widens the compressor threshold into a soft knee.
  • ratio is the gate expansion and compressor slope.
  • hold ms keeps the gate open and holds peaks before they release.
  • makeup boosts the compressor output after gain reduction.
  • The input menu selects the followed image; the second image is the sidechain the gate and compressor listen to when set.

reference doc · patcher · dynamics_mirror.py

← CrossoverErode →