fftlib.h

Go to the documentation of this file.
00001 /*
00002     fftlib.h:
00003 
00004     Copyright (C) 2005 Istvan Varga
00005 
00006     This file is part of Csound.
00007 
00008     The Csound Library is free software; you can redistribute it
00009     and/or modify it under the terms of the GNU Lesser General Public
00010     License as published by the Free Software Foundation; either
00011     version 2.1 of the License, or (at your option) any later version.
00012 
00013     Csound is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU Lesser General Public License for more details.
00017 
00018     You should have received a copy of the GNU Lesser General Public
00019     License along with Csound; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00021     02111-1307 USA
00022 */
00023 
00024 #ifndef CSOUND_FFTLIB_H
00025 #define CSOUND_FFTLIB_H
00026 
00027 #if !defined(__BUILDING_LIBCSOUND)
00028 #  error "Csound plugins and host applications should not include fftlib.h"
00029 #endif
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00039   MYFLT csoundGetInverseComplexFFTScale(CSOUND *csound, int FFTsize);
00040 
00045   MYFLT csoundGetInverseRealFFTScale(CSOUND *csound, int FFTsize);
00046 
00053   void csoundComplexFFT(CSOUND *csound, MYFLT *buf, int FFTsize);
00054 
00063   void csoundInverseComplexFFT(CSOUND *csound, MYFLT *buf, int FFTsize);
00064 
00072   void csoundRealFFT(CSOUND *csound, MYFLT *buf, int FFTsize);
00073 
00083   void csoundInverseRealFFT(CSOUND *csound, MYFLT *buf, int FFTsize);
00084 
00092   void csoundRealFFTMult(CSOUND *csound,
00093                          MYFLT *outbuf, MYFLT *buf1, MYFLT *buf2,
00094                          int FFTsize, MYFLT scaleFac);
00095 
00105   void csoundRealFFTnp2(CSOUND *csound, MYFLT *buf, int FFTsize);
00106 
00117   void csoundInverseRealFFTnp2(CSOUND *csound, MYFLT *buf, int FFTsize);
00118 
00119 #ifdef __cplusplus
00120 }
00121 #endif
00122 
00123 #endif      /* CSOUND_FFTLIB_H */
00124 

Generated on Sun Nov 9 00:04:52 2008 for Csound and CsoundAC by  doxygen 1.5.6