Mercurial > hg > tipic
view src/PitchFilterbank.h @ 35:474f45cfd3fd
Add downsampling outputs -- haven't yet got delay compensation in there though
author | Chris Cannam |
---|---|
date | Wed, 30 Sep 2015 16:15:36 +0100 |
parents | 83e5bd7fb921 |
children | 00b6ae41efbe |
line wrap: on
line source
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ #ifndef PITCH_FILTERBANK_H #define PITCH_FILTERBANK_H #include "Types.h" class PitchFilterbank { public: PitchFilterbank(int sampleRate, double tuningFrequency); ~PitchFilterbank(); void reset(); RealBlock process(const RealSequence &); RealBlock getRemainingOutput(); static void getPitchRange(int &minMidiPitch, int &maxMidiPitch); static double getOutputSampleRate(); private: class D; D *m_d; PitchFilterbank(const PitchFilterbank &); // not supplied PitchFilterbank &operator=(const PitchFilterbank &); // not supplied }; #endif