Mercurial > hg > wabletios
view dsptools.h @ 1:1d1bf0aac99e
This version was the first submitted to the app store.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Thu, 22 Nov 2012 12:15:19 +0000 |
parents | c667dfe12d47 |
children |
line wrap: on
line source
// // dsptools.h // wablet // // Created by Robert Tubb on 21/06/2011. // Copyright 2011 __MyCompanyName__. All rights reserved. // #ifndef _DSPTOOLSH #define _DSPTOOLSH class DSPTools{ public: double ax[3]; double by[3]; double xv[3]; double yv[3]; DSPTools(); double highpass1(double ax); double lowpass1(double ax); void getLPCoefficientsButterworth2Pole(const int samplerate, const double cutoff, double* const ax, double* const by); void getHPCoefficientsButterworth2Pole(double* const ax, double* const by); double butter(double sample); }; #endif