Skip to content

Ramp

Outputs zero until the delay, then rises at the configured slope.

Generic over the float width: T is f64 unless the instance binds it, and every parameter and the output take that width.

With t(n) = n*dt, y(n) = slope * max(t(n) - delay, 0.0).

Direction Name Type
Output y T
Name Type Default
slope T 1.0
delay T (s) 0.0

Negative slopes produce a falling ramp after the delay.

With dt = 0.5, slope = 2, and delay = 1, outputs at t = 0, 0.5, 1, 1.5 are 0, 0, 0, 1.