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/ReSyn.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sndobj/ReSyn.h') diff --git a/sndobj/ReSyn.h b/sndobj/ReSyn.h index 6233aee..d7525f8 100644 --- a/sndobj/ReSyn.h +++ b/sndobj/ReSyn.h @@ -29,18 +29,18 @@ class ReSyn : public SinSyn { protected: - float m_pitch; - float m_tscal; + double m_pitch; + double m_tscal; public: ReSyn(); - ReSyn(SinAnal* input, int maxtracks, Table* table, float pitch=1.f, - float scale=1.f, float tscal=1.f, int vecsize=DEF_VECSIZE, - float sr=DEF_SR); - void SetPitch(float pitch){ m_pitch = pitch; } - void SetTimeScale(float scale) { m_tscal = scale; } - int Set(char* mess, float value); + ReSyn(SinAnal* input, int maxtracks, Table* table, double pitch=1.f, + double scale=1.f, double tscal=1.f, int vecsize=DEF_VECSIZE, + double sr=DEF_SR); + void SetPitch(double pitch){ m_pitch = pitch; } + void SetTimeScale(double scale) { m_tscal = scale; } + int Set(char* mess, double value); ~ReSyn(); short DoProcess(); -- cgit v1.2.3