summaryrefslogtreecommitdiff
path: root/sndobj/ReSyn.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/ReSyn.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/ReSyn.h')
-rw-r--r--sndobj/ReSyn.h16
1 files changed, 8 insertions, 8 deletions
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();