00001 /* 00002 ** Copyright (C) 2008, 2009 Ricard Marxer <email@ricardmarxer.com> 00003 ** 00004 ** This program is free software; you can redistribute it and/or modify 00005 ** it under the terms of the GNU General Public License as published by 00006 ** the Free Software Foundation; either version 2 of the License, or 00007 ** (at your option) any later version. 00008 ** 00009 ** This program is distributed in the hope that it will be useful, 00010 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 ** GNU General Public License for more details. 00013 ** 00014 ** You should have received a copy of the GNU General Public License 00015 ** along with this program; if not, write to the Free Software 00016 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00019 #ifndef PEAKINTERPOLATIONCOMPLEX_H 00020 #define PEAKINTERPOLATIONCOMPLEX_H 00021 00022 #include "Typedefs.h" 00023 #include "Debug.h" 00024 00025 #include "Utils.h" 00026 00047 class PeakInterpolationComplex { 00048 protected: 00049 // Internal parameters 00050 00051 // Internal variables 00052 MatrixXR _magnitudes; 00053 MatrixXR _phases; 00054 00055 public: 00059 PeakInterpolationComplex(); 00060 00064 ~PeakInterpolationComplex(); 00065 00066 void setup(); 00067 void reset(); 00068 00108 void process(const MatrixXC& frames, 00109 const MatrixXR& peakPositions, const MatrixXR& peakMagnitudes, const MatrixXR& peakPhases, 00110 MatrixXR* peakPositionsInterpolated, MatrixXR* peakMagnitudesInterpolated, MatrixXR* peakPhasesInterpolated); 00111 00112 00113 }; 00114 00115 #endif /* PEAKINTERPOLATIONCOMPLEX_H */