mirror of
https://github.com/thestk/stk
synced 2026-01-17 06:41:51 +00:00
Version 3.2
This commit is contained in:
committed by
Stephen Sinclair
parent
4b6500d3de
commit
3f126af4e5
32
projects/effects/PitShift.h
Normal file
32
projects/effects/PitShift.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*********************************************/
|
||||
/* PitchShift Effect */
|
||||
/* by Perry Cook, 1996 */
|
||||
/*********************************************/
|
||||
|
||||
#if !defined(__PitShift_h)
|
||||
#define __PitShift_h
|
||||
|
||||
#include "Object.h"
|
||||
#include "DLineL.h"
|
||||
|
||||
class PitShift : public Object
|
||||
{
|
||||
protected:
|
||||
DLineL *delayLine[2];
|
||||
MY_FLOAT lastOut;
|
||||
MY_FLOAT delay[2];
|
||||
MY_FLOAT env[2];
|
||||
MY_FLOAT effectMix;
|
||||
MY_FLOAT rate;
|
||||
public:
|
||||
PitShift();
|
||||
~PitShift();
|
||||
void clear();
|
||||
void setShift(MY_FLOAT shift);
|
||||
void setEffectMix(MY_FLOAT mix);
|
||||
virtual MY_FLOAT lastOutput();
|
||||
MY_FLOAT tick(MY_FLOAT input);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user