summaryrefslogtreecommitdiff
path: root/sndobj/PVA.h
diff options
context:
space:
mode:
authorJohn Glover <glover.john@gmail.com>2010-10-21 13:39:28 +0100
committerJohn Glover <glover.john@gmail.com>2010-10-21 13:39:28 +0100
commitce65c30264be9683dd3a59b35730d2f31e02d37f (patch)
tree90aaf2e77526af9ba099e76175956d0dd6a37633 /sndobj/PVA.h
parentb46b988f164f983fc889c7bc0c96953e4609d27a (diff)
downloadsimpl-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/PVA.h')
-rw-r--r--sndobj/PVA.h14
1 files changed, 7 insertions, 7 deletions
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();