mirror of
https://github.com/thestk/stk
synced 2026-01-12 12:31:53 +00:00
Version 4.2.1
This commit is contained in:
committed by
Stephen Sinclair
parent
a6381b9d38
commit
2cbce2d8bd
@@ -5,12 +5,12 @@
|
||||
This class implements a simple pitch shifter
|
||||
using delay lines.
|
||||
|
||||
by Perry R. Cook and Gary P. Scavone, 1995 - 2004.
|
||||
by Perry R. Cook and Gary P. Scavone, 1995 - 2005.
|
||||
*/
|
||||
/***************************************************/
|
||||
|
||||
#include "PitShift.h"
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
const int maxDelay = 5024;
|
||||
|
||||
@@ -55,7 +55,7 @@ void PitShift :: setShift(StkFloat shift)
|
||||
}
|
||||
}
|
||||
|
||||
StkFloat PitShift :: tick(StkFloat input)
|
||||
StkFloat PitShift :: computeSample(StkFloat input)
|
||||
{
|
||||
// Calculate the two delay length values, keeping them within the
|
||||
// range 12 to maxDelay-12.
|
||||
@@ -83,15 +83,6 @@ StkFloat PitShift :: tick(StkFloat input)
|
||||
lastOutput_[0] *= effectMix_;
|
||||
lastOutput_[0] += (1.0 - effectMix_) * input;
|
||||
lastOutput_[1] = lastOutput_[0];
|
||||
|
||||
return lastOutput_[0];
|
||||
}
|
||||
|
||||
StkFloat *PitShift :: tick(StkFloat *vector, unsigned int vectorSize)
|
||||
{
|
||||
return Effect::tick( vector, vectorSize );
|
||||
}
|
||||
|
||||
StkFrames& PitShift :: tick( StkFrames& frames, unsigned int channel )
|
||||
{
|
||||
return Effect::tick( frames, channel );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user