mirror of
https://github.com/thestk/stk
synced 2026-01-19 23:51:51 +00:00
Version 3.2
This commit is contained in:
committed by
Stephen Sinclair
parent
4b6500d3de
commit
3f126af4e5
37
projects/effects/Chorus.h
Normal file
37
projects/effects/Chorus.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/******************************************/
|
||||
/* Chorus Effect */
|
||||
/* by Perry Cook, 1996 */
|
||||
/******************************************/
|
||||
|
||||
#if !defined(__Chorus_h)
|
||||
#define __Chorus_h
|
||||
|
||||
#include "Object.h"
|
||||
#include "DLineL.h"
|
||||
#include "RawWvIn.h"
|
||||
|
||||
class Chorus : public Object
|
||||
{
|
||||
protected:
|
||||
DLineL *delayLine[2];
|
||||
RawWvIn *mods[2];
|
||||
MY_FLOAT baseLength;
|
||||
MY_FLOAT modDepth;
|
||||
MY_FLOAT lastOutL;
|
||||
MY_FLOAT lastOutR;
|
||||
MY_FLOAT effectMix;
|
||||
public:
|
||||
Chorus(MY_FLOAT baseDelay);
|
||||
~Chorus();
|
||||
void clear();
|
||||
void setModDepth(MY_FLOAT depth);
|
||||
void setModFreq(MY_FLOAT freq);
|
||||
void setEffectMix(MY_FLOAT mix);
|
||||
MY_FLOAT lastOutput();
|
||||
MY_FLOAT lastOutputL();
|
||||
MY_FLOAT lastOutputR();
|
||||
MY_FLOAT tick(MY_FLOAT input);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user