18template <
int Z,
int O,
typename T =
float>
31 if (!(-1 < p && p <= 0))
33 for (
int j = 0; j < 2 * Z; j++) {
34 float minBlepIndex = ((float)j - p) * O;
35 int index = (
pos + j) % (2 * Z);
void minBlepImpulse(int z, int o, float *output)
Computes the minimum-phase bandlimited step (MinBLEP) z: number of zero-crossings o: oversample facto...
float interpolateLinear(const float *p, float x)
Linearly interpolates an array p with index x.
Definition math.hpp:164
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Definition minblep.hpp:19
T buf[2 *Z]
Definition minblep.hpp:20
MinBlepGenerator()
Definition minblep.hpp:24
T process()
Definition minblep.hpp:40
float impulse[2 *Z *O+1]
Definition minblep.hpp:22
int pos
Definition minblep.hpp:21
void insertDiscontinuity(float p, T x)
Places a discontinuity with magnitude x at -1 < p <= 0 relative to the current frame.
Definition minblep.hpp:30