PitchFilterbank.h
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4  Tipic
5 
6  Centre for Digital Music, Queen Mary, University of London.
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2 of the
11  License, or (at your option) any later version. See the file
12  COPYING included with this distribution for more information.
13 */
14 
15 #ifndef PITCH_FILTERBANK_H
16 #define PITCH_FILTERBANK_H
17 
18 #include "Types.h"
19 
21 {
22 public:
23  PitchFilterbank(int sampleRate, double tuningFrequency);
24  ~PitchFilterbank();
25 
26  void reset();
27 
28  RealBlock process(const RealSequence &);
29 
30  RealBlock getRemainingOutput();
31 
32  static void getPitchRange(int &minMidiPitch, int &maxMidiPitch);
33 
34  static double getOutputSampleRate();
35 
36 private:
37  class D;
38  D *m_d;
39 
40  PitchFilterbank(const PitchFilterbank &); // not supplied
41  PitchFilterbank &operator=(const PitchFilterbank &); // not supplied
42 };
43 
44 #endif
Definition: PitchFilterbank.h:20
Definition: PitchFilterbank.cpp:39