rt300@0: // rt300@0: // dsptools.h rt300@0: // wablet rt300@0: // rt300@0: // Created by Robert Tubb on 21/06/2011. rt300@0: // Copyright 2011 __MyCompanyName__. All rights reserved. rt300@0: // rt300@0: #ifndef _DSPTOOLSH rt300@0: #define _DSPTOOLSH rt300@0: rt300@0: rt300@0: class DSPTools{ rt300@0: public: rt300@0: double ax[3]; rt300@0: double by[3]; rt300@0: rt300@0: rt300@0: double xv[3]; rt300@0: double yv[3]; rt300@0: rt300@0: DSPTools(); rt300@0: double highpass1(double ax); rt300@0: double lowpass1(double ax); rt300@0: void getLPCoefficientsButterworth2Pole(const int samplerate, const double cutoff, double* const ax, double* const by); rt300@0: void getHPCoefficientsButterworth2Pole(double* const ax, double* const by); rt300@0: double butter(double sample); rt300@0: rt300@0: }; rt300@0: rt300@0: rt300@0: rt300@0: #endif