Chris@3: Chris@3: Chris@3:
Chris@3: Chris@3: Chris@3:
Chris@3: VampPluginSDK
Chris@3: 2.4
Chris@3:
Chris@3:
Chris@3: |
Chris@3:
Chris@3:
Chris@3:
Chris@3:
00001 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@3: 00002 Chris@3: 00003 /* Chris@3: 00004 Vamp Chris@3: 00005 Chris@3: 00006 An API for audio analysis and feature extraction plugins. Chris@3: 00007 Chris@3: 00008 Centre for Digital Music, Queen Mary, University of London. Chris@3: 00009 Copyright 2006-2012 Chris Cannam and QMUL. Chris@3: 00010 Chris@3: 00011 Permission is hereby granted, free of charge, to any person Chris@3: 00012 obtaining a copy of this software and associated documentation Chris@3: 00013 files (the "Software"), to deal in the Software without Chris@3: 00014 restriction, including without limitation the rights to use, copy, Chris@3: 00015 modify, merge, publish, distribute, sublicense, and/or sell copies Chris@3: 00016 of the Software, and to permit persons to whom the Software is Chris@3: 00017 furnished to do so, subject to the following conditions: Chris@3: 00018 Chris@3: 00019 The above copyright notice and this permission notice shall be Chris@3: 00020 included in all copies or substantial portions of the Software. Chris@3: 00021 Chris@3: 00022 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, Chris@3: 00023 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF Chris@3: 00024 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND Chris@3: 00025 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR Chris@3: 00026 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF Chris@3: 00027 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION Chris@3: 00028 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Chris@3: 00029 Chris@3: 00030 Except as contained in this notice, the names of the Centre for Chris@3: 00031 Digital Music; Queen Mary, University of London; and Chris Cannam Chris@3: 00032 shall not be used in advertising or otherwise to promote the sale, Chris@3: 00033 use or other dealings in this Software without prior written Chris@3: 00034 authorization. Chris@3: 00035 */ Chris@3: 00036 Chris@3: 00037 #ifndef _VAMP_FFT_H_ Chris@3: 00038 #define _VAMP_FFT_H_ Chris@3: 00039 Chris@3: 00040 #include "plugguard.h" Chris@3: 00041 _VAMP_SDK_PLUGSPACE_BEGIN(FFT.h) Chris@3: 00042 Chris@3: 00043 namespace Vamp { Chris@3: 00044 Chris@3: 00058 class FFT Chris@3: 00059 { Chris@3: 00060 public: Chris@3: 00072 static void forward(unsigned int n, Chris@3: 00073 const double *ri, const double *ii, Chris@3: 00074 double *ro, double *io); Chris@3: 00075 Chris@3: 00089 static void inverse(unsigned int n, Chris@3: 00090 const double *ri, const double *ii, Chris@3: 00091 double *ro, double *io); Chris@3: 00092 }; Chris@3: 00093 Chris@3: 00094 } Chris@3: 00095 Chris@3: 00096 _VAMP_SDK_PLUGSPACE_END(FFT.h) Chris@3: 00097 Chris@3: 00098 #endif Chris@3: