00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MARSYAS_SPECTRALTRANSFORMATIONS_H
00020 #define MARSYAS_SPECTRALTRANSFORMATIONS_H
00021
00022 #include "MarSystem.h"
00023
00024 namespace Marsyas
00025 {
00039 class SpectralTransformations: public MarSystem
00040 {
00041 private:
00042 void addControls();
00043 void myUpdate(MarControlPtr sender);
00044
00045 MarControlPtr ctrl_gain_;
00046 MarControlPtr ctrl_mode_;
00047
00048 mrs_real N2_, re_, im_, mag_, phs_;
00049
00050 public:
00051 SpectralTransformations(std::string name);
00052 SpectralTransformations(const SpectralTransformations& a);
00053 ~SpectralTransformations();
00054 MarSystem* clone() const;
00055 void phaseRandomize(realvec& in, realvec& out);
00056 void singlebin(realvec& in, realvec& out);
00057 void three_peaks(realvec& in, realvec& out);
00058 void compress_magnitude(realvec& in, realvec& out);
00059
00060 void myProcess(realvec& in, realvec& out);
00061 };
00062
00063 }
00064
00065 #endif