view 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
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