00001
00012
00013
00014 #ifndef DELAY_H
00015 #define DELAY_H
00016
00017 #include "AudioDrome.h"
00018
00019 class Delay : public AudioDrome
00020 {
00021 public:
00023 Delay (const float &sr=44100, const float &delayMax=1);
00024
00026 virtual ~Delay ();
00027
00029 void setDelay (const float &delay);
00030
00032 void setMaxDelay (const float &delayMax);
00033
00035 void clear ();
00036
00038 float getDelay () const;
00039
00041 virtual float outSig (const float &input);
00042
00043 protected:
00044 unsigned long _read;
00045 unsigned long _write;
00046 unsigned long _size;
00047 float _delayTime;
00048 float* _buffer;
00049 };
00050 #endif