diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-01-19 21:11:59 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-01-19 21:11:59 +0000 |
commit | cada39a002fbbe9bc848f963c3eb7faa65122228 (patch) | |
tree | a6b4c611989fa15cf0f59c656c81a2e388041324 /externals/grill/fftease/src/drown~.cpp | |
parent | 9ff5ccdea43ff2a954c1a400516dc6858e188e9c (diff) |
""
svn path=/trunk/; revision=345
Diffstat (limited to 'externals/grill/fftease/src/drown~.cpp')
-rw-r--r-- | externals/grill/fftease/src/drown~.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/externals/grill/fftease/src/drown~.cpp b/externals/grill/fftease/src/drown~.cpp index 171fbaf8..88803aa8 100644 --- a/externals/grill/fftease/src/drown~.cpp +++ b/externals/grill/fftease/src/drown~.cpp @@ -18,17 +18,17 @@ class drown: FLEXT_HEADER(drown,fftease) public: - drown(I argc,const t_atom *argv); + drown(); protected: virtual V Transform(I n,S *const *in); }; -FLEXT_LIB_DSP_V("fftease, drown~ denude~",drown) +FLEXT_LIB_DSP("fftease, drown~ denude~",drown) -drown::drown(I argc,const t_atom *argv): - fftease(4,F_BALANCED|F_CONVERT) +drown::drown(): + fftease(4,F_BALANCED) { AddInSignal("Messages and input signal"); AddInSignal("Threshold generator signal"); @@ -37,13 +37,11 @@ drown::drown(I argc,const t_atom *argv): } -V drown::Transform(I _N2,S *const *in) +V drown::Transform(I _N,S *const *in) { // only first value of the signal vectors const F thresh = *in[0],mult = *in[1]; - const I _N = _N2*2; - // make up low amplitude bins for (I i = 0; i <= _N; i += 2) if(_channel1[i] < thresh) _channel1[i] *= mult; |