CLAM-Development  1.4.0
SpectralEnvelopeExtract.hxx
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG)
3  * UNIVERSITAT POMPEU FABRA
4  *
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  */
21 
22 #ifndef _SpectralEnvelope_Extract_
23 #define _SpectralEnvelope_Extract_
24 
25 #include "Processing.hxx"
27 #include "BPF.hxx"
28 
29 namespace CLAM {
30 
31  class Spectrum;
32  class SpectralPeakArray;
33  class Storage;
34  class ProcessingConfig;
35 
39  /* SpectralEnvelopeExtractConfig moved to SpectralEnvelopeExtractConfig.hxx */
40 
41 
47 
51  const char *GetClassName() const {return "SpectralEnvelopeExtract";}
52 
58  bool ConcreteConfigure(const ProcessingConfig&);
59 
60  public:
67 
70 
74  const ProcessingConfig &GetConfig() const { return mConfig;}
75 
77  bool Do(void);
78 
84  bool Do(const SpectralPeakArray& input,Spectrum& output);
85 
86 
90  bool SetPrototypes(const SpectralPeakArray& input,Spectrum& output);
91 
92  bool SetPrototypes();
93 
94  bool UnsetPrototypes();
95 
96  bool MayDisableExecution() const {return true;}
97 
98  private:
99 
105  bool CheckOutputType(Spectrum& out);
106 
107  //member BPF's used for initialization
108  BPF mMagBPF;
109  BPF mPhaseBPF;
110 
111  };
112 
113 };//namespace CLAM
114 
115 #endif // _SpectralEnvelope_Extract_
116