summaryrefslogtreecommitdiff
path: root/tests/test5/fft.h
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-09 08:16:31 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-09 08:16:31 +0000
commit4e623f07d088fb98edb6595bf315ab4026d559b7 (patch)
tree850047c6d2fcf3d42ee8f3b11c728c902fe91e5f /tests/test5/fft.h
parent22079050f23cd4e019fc7dc98c25d5e06b1f8ead (diff)
download2012-violon-leds-4e623f07d088fb98edb6595bf315ab4026d559b7.tar.gz
2012-violon-leds-4e623f07d088fb98edb6595bf315ab4026d559b7.tar.bz2
2012-violon-leds-4e623f07d088fb98edb6595bf315ab4026d559b7.zip
Clean code, reorg, ajout licence Audacity, test6 pour la mysterieuse fonction todb_a. Ca n'est pas la courbe de ponderation A, c'est just une conversion en dB pour une puissance. La constante 4.34 est un mystère... c'est le log d'une valeur de ref sûrement, mais j'ai pas trouvé laquelle
git-svn-id: file:///var/svn/2012-violon-leds/trunk@15 6be1fa4d-33ac-4c33-becc-79fcb3794bb6
Diffstat (limited to 'tests/test5/fft.h')
-rw-r--r--tests/test5/fft.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/test5/fft.h b/tests/test5/fft.h
index 7f2f0de..02bb7de 100644
--- a/tests/test5/fft.h
+++ b/tests/test5/fft.h
@@ -1,14 +1,19 @@
#ifndef FFT_H
#define FFT_H
-#include <gtk/gtk.h>
+/* Everything here comes from Audacity 1.3.13
+ (orignally in C++ and with more genericity and functionnality)
+ Original Author : Dominic Mazzoni
+ Licenced under GPL 2.0 (see LICENCE)
+*/
-void FFT(int NumSamples, gboolean InverseTransform,
+void FFT(int NumSamples, int InverseTransform,
float *RealIn, float *ImagIn, float *RealOut, float *ImagOut);
void InitFFT();
int NumberOfBitsNeeded(int PowerOfTwo);
inline int FastReverseBits(int i, int NumBits);
int ReverseBits(int index, int NumBits);
+void PowerSpectrum(float *In, float *Out);
#endif