00001 /* 00002 * Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG) 00003 * UNIVERSITAT POMPEU FABRA 00004 * 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 */ 00021 00022 #ifndef _FDCombFilter_ 00023 #define _FDCombFilter_ 00024 00025 #include "Processing.hxx" 00026 #include "DynamicType.hxx" 00027 #include "Spectrum.hxx" 00028 #include "InControl.hxx" 00029 00030 namespace CLAM { 00031 00032 00036 class FDCombFilterConfig: public ProcessingConfig 00037 { 00038 public: 00039 DYNAMIC_TYPE_USING_INTERFACE (FDCombFilterConfig, 0,ProcessingConfig); 00040 }; 00041 00048 class FDCombFilter: public Processing { 00049 FDCombFilterConfig mConfig; 00050 00054 const char *GetClassName() const {return "FDCombFilter";} 00055 00061 bool ConcreteConfigure(const ProcessingConfig&); 00062 00063 public: 00065 FDCombFilter(); 00069 FDCombFilter(const FDCombFilterConfig &c); 00070 00072 ~FDCombFilter(); 00073 00077 const ProcessingConfig &GetConfig() const { return mConfig;} 00078 00080 bool Do(void); 00081 00087 bool Do(const Spectrum& input,Spectrum& output); 00088 00089 00093 bool SetPrototypes(const Spectrum& input,Spectrum& output); 00094 00095 bool SetPrototypes(); 00096 00097 bool UnsetPrototypes(); 00098 00099 bool MayDisableExecution() const {return true;} 00100 00101 InControlTmpl<FDCombFilter> mFreq; 00102 00103 00104 00105 }; 00106 00107 };//namespace CLAM 00108 00109 #endif // _FDCombFilter_ 00110