diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2009-04-01 21:13:09 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2009-04-01 21:13:09 +0000 |
commit | 0ed7a8b68dd73e2b0473b8127aeca99f3bac9061 (patch) | |
tree | 5c67818b38a5cc2f9caa5ca7f8640ca356adf02b /externals/grill/fftease/src/swinger~.cpp | |
parent | bb4c7f6a245394d09dac9adfb2efb093d3d98452 (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/swinger~.cpp')
-rw-r--r-- | externals/grill/fftease/src/swinger~.cpp | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/externals/grill/fftease/src/swinger~.cpp b/externals/grill/fftease/src/swinger~.cpp deleted file mode 100644 index 4660058d..00000000 --- a/externals/grill/fftease/src/swinger~.cpp +++ /dev/null @@ -1,64 +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> - - -// add quality switch - -class swinger: - public fftease -{ - FLEXT_HEADER(swinger,fftease) - -public: - swinger(I argc,const t_atom *argv); - -protected: - - BL _qual; - - virtual V Transform(I n,S *const *in); -}; - -FLEXT_LIB_DSP_V("swinger~",swinger) - - -swinger::swinger(I argc,const t_atom *argv): - fftease(2,F_STEREO|F_BITSHUFFLE|F_NOPH1|F_NOAMP2), - _qual(false) -{ - /* parse and set object's options given */ - if(argc >= 1) { - if(CanbeBool(argv[0])) - _qual = GetABool(argv[0]); - else - post("%s - Quality must be a boolean value - set to %0i",thisName(),_qual?1:0); - } - - if(_qual) { - Mult(4); - _flags |= F_BALANCED; - } - else - Mult(2); - - AddInSignal("Messages and input signal"); - AddInSignal("Signal to supply phase information"); - AddOutSignal("Transformed signal"); -} - - -V swinger::Transform(I _N,S *const *) -{ - for (I i = 0; i <= _N; i += 2) _channel1[i+1] = _channel2[i+1]; -} |