Logo Search packages:      
Sourcecode: calf version File versions  Download package

template<class T = float, class Coeff = float>
float dsp::onepole< T, Coeff >::freq_gain ( float  freq,
float  sr 
) [inline]

Return the filter's gain at frequency freq

freq Frequency to look up
sr Filter sample rate (used to convert frequency to angular frequency)

Definition at line 174 of file onepole.h.

        freq *= 2.0 * M_PI / sr;
        cfloat z = 1.0 / exp(cfloat(0.0, freq));
        return std::abs(h_z(z));

Generated by  Doxygen 1.6.0   Back to index