summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/plugins/freeverb/comb.h
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-04-15 18:52:45 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-04-15 18:52:45 +0000
commit47a10173ea203de2036dd00791fe5c24fb673135 (patch)
tree6cb2e59a1e099adb30ec4f394097e33974c54ac4 /attic/muse2-oom/muse2/plugins/freeverb/comb.h
parent8edb9ca0e8e056faa0b488c947e7447a8148f880 (diff)
removing unnecessary duplication
Diffstat (limited to 'attic/muse2-oom/muse2/plugins/freeverb/comb.h')
-rw-r--r--attic/muse2-oom/muse2/plugins/freeverb/comb.h66
1 files changed, 0 insertions, 66 deletions
diff --git a/attic/muse2-oom/muse2/plugins/freeverb/comb.h b/attic/muse2-oom/muse2/plugins/freeverb/comb.h
deleted file mode 100644
index d2e0f871..00000000
--- a/attic/muse2-oom/muse2/plugins/freeverb/comb.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Comb filter class declaration
-//
-// Written by Jezar at Dreampoint, June 2000
-// http://www.dreampoint.co.uk
-// This code is public domain
-
-#ifndef _comb_
-#define _comb_
-
-#include "denormals.h"
-
-
-//---------------------------------------------------------
-// comb
-//---------------------------------------------------------
-
-class comb
- {
- float feedback;
- float filterstore;
- float damp1;
- float damp2;
- float *buffer;
- int bufsize;
- int bufidx;
-
-public:
- comb() {
- filterstore = 0;
- bufidx = 0;
- }
- void setbuffer(float *buf, int size) {
- buffer = buf;
- bufsize = size;
- }
- float process(float input) {
- float output = buffer[bufidx];
- undenormalise(output);
- filterstore = (output*damp2) + (filterstore*damp1);
- undenormalise(filterstore);
- buffer[bufidx] = input + (filterstore*feedback);
- if (++bufidx >= bufsize)
- bufidx = 0;
-// bufidx = ++bufidx % bufsize;
- return output;
- }
- void mute() {
- for (int i=0; i<bufsize; i++)
- buffer[i]=0;
- }
- void setdamp(float val) {
- damp1 = val;
- damp2 = 1-val;
- }
- float getdamp() { return damp1; }
- void setfeedback(float val) { feedback = val; }
- float getfeedback() { return feedback; }
- };
-
-
-// Big to inline - but crucial for speed
-
-
-#endif //_comb_
-
-//ends