aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/fftease/src/drown~.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2009-04-01 21:13:09 +0000
committerThomas Grill <xovo@users.sourceforge.net>2009-04-01 21:13:09 +0000
commit0ed7a8b68dd73e2b0473b8127aeca99f3bac9061 (patch)
tree5c67818b38a5cc2f9caa5ca7f8640ca356adf02b /externals/grill/fftease/src/drown~.cpp
parentbb4c7f6a245394d09dac9adfb2efb093d3d98452 (diff)
cleaned up grill externals - replaced with svn:externals to svn.grrrr.org/ext/trunk/
svn path=/trunk/; revision=10951
Diffstat (limited to 'externals/grill/fftease/src/drown~.cpp')
-rw-r--r--externals/grill/fftease/src/drown~.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/externals/grill/fftease/src/drown~.cpp b/externals/grill/fftease/src/drown~.cpp
deleted file mode 100644
index 2f59cc0a..00000000
--- a/externals/grill/fftease/src/drown~.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
-
-FFTease - A set of Live Spectral Processors
-Originally written by Eric Lyon and Christopher Penrose for the Max/MSP platform
-
-Copyright (c)Thomas Grill (xovo@gmx.net)
-For information on usage and redistribution, and for a DISCLAIMER OF ALL
-WARRANTIES, see the file, "license.txt," in this distribution.
-
-*/
-
-#include "main.h"
-#include <stdlib.h>
-
-class drown:
- public fftease
-{
- FLEXT_HEADER(drown,fftease)
-
-public:
- drown();
-
-protected:
- virtual V Transform(I n,S *const *in);
-};
-
-FLEXT_LIB_DSP("drown~ denude~",drown)
-
-
-drown::drown():
- fftease(4,F_BALANCED)
-{
- AddInSignal("Messages and input signal");
- AddInSignal("Threshold generator signal");
- AddInSignal("Multiplier signal for weak bins");
- AddOutSignal("Transformed signal");
-}
-
-
-V drown::Transform(I _N,S *const *in)
-{
- // only first value of the signal vectors
- const F thresh = *in[0],mult = *in[1];
-
- // make up low amplitude bins
- for (I i = 0; i <= _N; i += 2)
- if(_channel1[i] < thresh) _channel1[i] *= mult;
-}
-
-