Just straight implementation from Vadims' book.AdmiralQuality wrote:As someone who's NOT using [the unspeakable term for whatever you want to call it], how about some of you geniuses share the algo with us, considering how it's all common knowledge and everything.
A few lines of code or pseudocode, please. Unpronounceable math symbols and opaque terminology not required or helpful. Nor is introduction of non-linearities. Just a nice straight linear IIR with negative feedback. For us simpletons. Please?
Code: Select all
inline static float tptlp(float& state,float inp,float cutoff,float sampleRate)
{
//BLT frequency wrap compensation
cutoff = tan(cutoff * (juce::float_Pi) / (sampleRate)) ;
//Linear prediction step
double hp = (inp - state) * cutoff / (1 + cutoff);
//State update step
double lp = hp + state;
state = lp + hp;
return lp;
};

