From ce65c30264be9683dd3a59b35730d2f31e02d37f Mon Sep 17 00:00:00 2001 From: John Glover Date: Thu, 21 Oct 2010 13:39:28 +0100 Subject: Changed from floats to doubles in the C/C++ code, makes Python integration a bit easier. Fixed a bug that would cause SndObjSynthesis to crash if peak values were floats. --- sndobj/PVA.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sndobj/PVA.h') diff --git a/sndobj/PVA.h b/sndobj/PVA.h index d53f760..0826f99 100644 --- a/sndobj/PVA.h +++ b/sndobj/PVA.h @@ -36,22 +36,22 @@ class PVA : public FFT { protected: int m_rotcount; // rotation counter - float m_factor; // conversion factor - float* m_phases; + double m_factor; // conversion factor + double* m_phases; private: - void inline pvanalysis(float* signal); + void inline pvanalysis(double* signal); public: PVA(); - PVA(Table* window, SndObj* input, float scale=1.f, - int fftsize=DEF_FFTSIZE, int hopsize=DEF_VECSIZE, float sr=DEF_SR); + PVA(Table* window, SndObj* input, double scale=1.f, + int fftsize=DEF_FFTSIZE, int hopsize=DEF_VECSIZE, double sr=DEF_SR); ~PVA(); - float Outphases(int pos){ return m_phases[pos]; } // reads phase output. - int Set(char* mess, float value); + double Outphases(int pos){ return m_phases[pos]; } // reads phase output. + int Set(char* mess, double value); void SetFFTSize(int fftsize); void SetHopSize(int hopsize); short DoProcess(); -- cgit v1.2.3