← f_ notebook · docs/f-reference/f_channel_grader.md

f_channel_grader — Bpatcher Spec ​

Last updated: 2026-05-25Status: Working

Concept ​

Per-channel color grading using lift/gamma/gain controls on R, G, B, and Master channels. A standard film-style grading model: lift sets the black point, gamma adjusts midtones, gain sets the white point.

Parameters ​

NameTypeDescription
bypasstoggleBypass processing
r_liftfloatRed channel lift (black point)
r_gammafloatRed channel gamma (midtone)
r_gainfloatRed channel gain (white point)
g_liftfloatGreen channel lift
g_gammafloatGreen channel gamma
g_gainfloatGreen channel gain
b_liftfloatBlue channel lift
b_gammafloatBlue channel gamma
b_gainfloatBlue channel gain
m_liftfloatMaster lift (all channels)
m_gammafloatMaster gamma
m_gainfloatMaster gain

Signal Chain ​

texture in → jit.gl.pix (lift/gamma/gain codebox, per channel)
           → texture out

Parameters routed via route bypass r_lift r_gamma r_gain g_lift g_gamma g_gain b_lift b_gamma b_gain m_lift m_gamma m_gain.

Loose Threads ​

  • None known.

References ​

Per-channel lift/gamma/gain/offset color grading is standard colorist practice; the four-band param naming and layout are this library's own convention. No external source was consulted. The dense twelve-dial panel is the shipped legacy design, deliberately reproduced.

See docs/f-reference/f_channel_grader.md (this file) for the full parameter reference.

Source File ​

patchers/f_channel_grader.maxpat