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/HarmTable.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sndobj/HarmTable.h') diff --git a/sndobj/HarmTable.h b/sndobj/HarmTable.h index da4e360..98671df 100644 --- a/sndobj/HarmTable.h +++ b/sndobj/HarmTable.h @@ -37,7 +37,7 @@ class HarmTable : public Table { protected : int m_harm; - float m_phase; + double m_phase; int m_typew; public: @@ -47,8 +47,8 @@ class HarmTable : public Table { char* ErrorMessage(); short MakeTable(); HarmTable(); - void SetPhase(float phase){ m_phase = (float)(phase*TWOPI); } - HarmTable(long L, int harm, int type, float phase=0.f); + void SetPhase(double phase){ m_phase = (double)(phase*TWOPI); } + HarmTable(long L, int harm, int type, double phase=0.f); ~HarmTable(); }; -- cgit v1.2.3