mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
31 lines
593 B
C++
31 lines
593 B
C++
/******************************************/
|
|
/* Echo Effect Applied to Soundfile */
|
|
/* by Perry Cook, 1996 */
|
|
/******************************************/
|
|
|
|
#if !defined(__Echo_h)
|
|
#define __Echo_h
|
|
|
|
#include "Object.h"
|
|
#include "DLineN.h"
|
|
|
|
class Echo : public Object
|
|
{
|
|
protected:
|
|
DLineN *delayLine;
|
|
long length;
|
|
MY_FLOAT lastOut;
|
|
MY_FLOAT effectMix;
|
|
public:
|
|
Echo(MY_FLOAT longestDelay);
|
|
~Echo();
|
|
void clear();
|
|
void setDelay(MY_FLOAT delay);
|
|
void setEffectMix(MY_FLOAT mix);
|
|
MY_FLOAT lastOutput();
|
|
MY_FLOAT tick(MY_FLOAT input);
|
|
};
|
|
|
|
#endif
|
|
|