From 4e623f07d088fb98edb6595bf315ab4026d559b7 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 9 Jun 2012 08:16:31 +0000 Subject: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2012-violon-leds/trunk@15 6be1fa4d-33ac-4c33-becc-79fcb3794bb6 --- tests/test5/fft.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/test5/fft.h') 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 +/* 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 -- cgit v1.2.3