|
123456789101112131415161718192021222324252627282930313233343536373839 |
- // Allpass filter implementation
- //
- // Written by Jezar at Dreampoint, June 2000
- // http://www.dreampoint.co.uk
- // This code is public domain
-
- #include "allpass.hpp"
-
- allpass::allpass()
- {
- feedback = 0.0f;
- bufidx = 0;
- buffer = nullptr;
- bufsize = 0;
- }
-
- void allpass::setbuffer(float *buf, int size)
- {
- buffer = buf;
- bufsize = size;
- }
-
- void allpass::mute()
- {
- for (int i=0; i<bufsize; i++)
- buffer[i]=0;
- }
-
- void allpass::setfeedback(float val)
- {
- feedback = val;
- }
-
- float allpass::getfeedback()
- {
- return feedback;
- }
-
- //ends
|