summaryrefslogtreecommitdiff
path: root/sndobj/SinSyn.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/SinSyn.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/SinSyn.h')
-rw-r--r--sndobj/SinSyn.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/sndobj/SinSyn.h b/sndobj/SinSyn.h
index 30c81e4..6d9e519 100644
--- a/sndobj/SinSyn.h
+++ b/sndobj/SinSyn.h
@@ -31,35 +31,35 @@ class SinSyn : public SndObj {
protected:
- float m_size;
+ double m_size;
Table* m_ptable;
- float m_factor;
- float m_facsqr;
- float m_LoTWOPI;
- float m_scale;
- float m_incr;
- float m_ratio;
+ double m_factor;
+ double m_facsqr;
+ double m_LoTWOPI;
+ double m_scale;
+ double m_incr;
+ double m_ratio;
int m_tracks;
int* m_trackID;
int m_maxtracks;
- float* m_phases;
- float* m_freqs;
- float* m_amps;
+ double* m_phases;
+ double* m_freqs;
+ double* m_amps;
public:
SinSyn();
- SinSyn(SinAnal* input, int maxtracks, Table* table, float scale=1.f,
- int vecsize=DEF_VECSIZE, float sr=DEF_SR);
+ SinSyn(SinAnal* input, int maxtracks, Table* table, double scale=1.f,
+ int vecsize=DEF_VECSIZE, double sr=DEF_SR);
~SinSyn();
void SetTable(Table* table);
void SetMaxTracks(int maxtracks);
- void SetScale(float scale) { m_scale = scale; }
- int Set(char* mess, float value);
+ void SetScale(double scale) { m_scale = scale; }
+ int Set(char* mess, double value);
int Connect(char* mess, void* input);
short DoProcess();