summaryrefslogtreecommitdiff
path: root/tests/test6/fft.h
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-16 21:16:46 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-16 21:16:46 +0000
commit593e1cbe3470f409c19a7f06f5d10c6f5677361a (patch)
tree94ef0cbc5e13e71e11a13629b64ecfc126faa5a1 /tests/test6/fft.h
parent8f2cf274f4101ed1d05ea3401bdd54c5949e2420 (diff)
download2012-violon-leds-593e1cbe3470f409c19a7f06f5d10c6f5677361a.tar.gz
2012-violon-leds-593e1cbe3470f409c19a7f06f5d10c6f5677361a.tar.bz2
2012-violon-leds-593e1cbe3470f409c19a7f06f5d10c6f5677361a.zip
Bon, calcul du niveau sonore dans la plage 200 à 2000Hz en reprennant les choses calmement. Il n'est pas impossible que les valeurs soient bonnes :P
git-svn-id: file:///var/svn/2012-violon-leds/trunk@19 6be1fa4d-33ac-4c33-becc-79fcb3794bb6
Diffstat (limited to 'tests/test6/fft.h')
-rw-r--r--tests/test6/fft.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test6/fft.h b/tests/test6/fft.h
new file mode 100644
index 0000000..6066d52
--- /dev/null
+++ b/tests/test6/fft.h
@@ -0,0 +1,19 @@
+#ifndef FFT_H
+#define FFT_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)
+*/
+
+#define PSNumS 256
+#define PSHalf 128
+void PowerSpectrum(float In[PSNumS], float Out[PSHalf]);
+
+void FFT(int NumSamples, int InverseTransform,
+ float *RealIn, float *ImagIn, float *RealOut, float *ImagOut);
+void DeinitFFT();
+
+#endif
+