mirror of
https://github.com/thestk/stk
synced 2026-01-20 16:01:54 +00:00
Version 3.2
This commit is contained in:
committed by
Stephen Sinclair
parent
4b6500d3de
commit
3f126af4e5
30
projects/effects/Echo.h
Normal file
30
projects/effects/Echo.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/******************************************/
|
||||
/* 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
|
||||
|
||||
Reference in New Issue
Block a user