summaryrefslogtreecommitdiff
path: root/sndobj/IFAdd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sndobj/IFAdd.cpp')
-rw-r--r--sndobj/IFAdd.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/sndobj/IFAdd.cpp b/sndobj/IFAdd.cpp
index 4a03491..c962e31 100644
--- a/sndobj/IFAdd.cpp
+++ b/sndobj/IFAdd.cpp
@@ -26,7 +26,7 @@ IFAdd::IFAdd(){
}
IFAdd::IFAdd(IFGram* input, int bins, Table* table,
- float pitch, float scale, float tscal, int vecsize, float sr)
+ double pitch, double scale, double tscal, int vecsize, double sr)
: ReSyn((SinAnal *)input, bins, table, pitch, scale, tscal, vecsize, sr){
}
@@ -38,13 +38,13 @@ IFAdd::DoProcess() {
if(m_input){
- float ampnext,amp,freq, freqnext, phase;
- float inc1, inc2, a, ph, cnt, frac;
- float a2, a3, phasediff, phasenext, cph, shf;
+ double ampnext,amp,freq, freqnext, phase;
+ double inc1, inc2, a, ph, cnt, frac;
+ double a2, a3, phasediff, phasenext, cph, shf;
bool lock;
int i2, i, bins = m_maxtracks, ndx;
- float* tab = m_ptable->GetTable();
- memset(m_output, 0, sizeof(float)*m_vecsize);
+ double* tab = m_ptable->GetTable();
+ memset(m_output, 0, sizeof(double)*m_vecsize);
shf = m_tscal*m_pitch;
if(shf - Ftoi(shf)) lock = false;