Mercurial > hg > wabletios
annotate dsptools.h @ 15:d5758530a039 tip
oF0.84
Retina, and iPhone support
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 12 May 2015 15:48:52 +0100 |
parents | c667dfe12d47 |
children |
rev | line source |
---|---|
rt300@0 | 1 // |
rt300@0 | 2 // dsptools.h |
rt300@0 | 3 // wablet |
rt300@0 | 4 // |
rt300@0 | 5 // Created by Robert Tubb on 21/06/2011. |
rt300@0 | 6 // Copyright 2011 __MyCompanyName__. All rights reserved. |
rt300@0 | 7 // |
rt300@0 | 8 #ifndef _DSPTOOLSH |
rt300@0 | 9 #define _DSPTOOLSH |
rt300@0 | 10 |
rt300@0 | 11 |
rt300@0 | 12 class DSPTools{ |
rt300@0 | 13 public: |
rt300@0 | 14 double ax[3]; |
rt300@0 | 15 double by[3]; |
rt300@0 | 16 |
rt300@0 | 17 |
rt300@0 | 18 double xv[3]; |
rt300@0 | 19 double yv[3]; |
rt300@0 | 20 |
rt300@0 | 21 DSPTools(); |
rt300@0 | 22 double highpass1(double ax); |
rt300@0 | 23 double lowpass1(double ax); |
rt300@0 | 24 void getLPCoefficientsButterworth2Pole(const int samplerate, const double cutoff, double* const ax, double* const by); |
rt300@0 | 25 void getHPCoefficientsButterworth2Pole(double* const ax, double* const by); |
rt300@0 | 26 double butter(double sample); |
rt300@0 | 27 |
rt300@0 | 28 }; |
rt300@0 | 29 |
rt300@0 | 30 |
rt300@0 | 31 |
rt300@0 | 32 #endif |