MCPcopy Create free account
hub / github.com/VCVRack/Rack / crossfade

Function crossfade

include/math.hpp:157–159  ·  view source on GitHub ↗

Linearly interpolates between `a` and `b`, from `p = 0` to `p = 1`. */

Source from the content-addressed store, hash-verified

155/** Linearly interpolates between `a` and `b`, from `p = 0` to `p = 1`.
156*/
157inline float crossfade(float a, float b, float p) {
158 return a + (b - a) * p;
159}
160
161/** Linearly interpolates an array `p` with index `x`.
162The array at `p` must be at least length `floor(x) + 2`.

Callers 2

crossfFunction · 0.70
interpolateLinearFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected