diff options
| author | John Glover <glover.john@gmail.com> | 2010-10-21 13:39:28 +0100 | 
|---|---|---|
| committer | John Glover <glover.john@gmail.com> | 2010-10-21 13:39:28 +0100 | 
| commit | ce65c30264be9683dd3a59b35730d2f31e02d37f (patch) | |
| tree | 90aaf2e77526af9ba099e76175956d0dd6a37633 /sndobj/PVS.h | |
| parent | b46b988f164f983fc889c7bc0c96953e4609d27a (diff) | |
| download | simpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.tar.gz simpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.tar.bz2 simpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.zip  | |
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.
Diffstat (limited to 'sndobj/PVS.h')
| -rw-r--r-- | sndobj/PVS.h | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/sndobj/PVS.h b/sndobj/PVS.h index 7347440..6108055 100644 --- a/sndobj/PVS.h +++ b/sndobj/PVS.h @@ -37,22 +37,22 @@ class PVS : public IFFT {   protected:    int m_rotcount; // rotation counter -  float m_factor;  // conversion factor -  float* m_phases;  // old phases +  double m_factor;  // conversion factor +  double* m_phases;  // old phases   private: -  void inline pvsynthesis(float* signal);  +  void inline pvsynthesis(double* signal);     bool m_first;   public:    PVS();    PVS(Table* window, SndObj* input, int fftsize=DEF_FFTSIZE, -      int hopsize=DEF_VECSIZE, float sr=DEF_SR); +      int hopsize=DEF_VECSIZE, double sr=DEF_SR);    ~PVS(); -  int Set(char* mess, float value); +  int Set(char* mess, double value);    void SetFFTSize(int fftsize);    void SetHopSize(int hopsize);  |