00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MARSYAS_RESAMPLENEARESTNEIGHBOUR_H
00020 #define MARSYAS_RESAMPLENEARESTNEIGHBOUR_H
00021
00022 #include "MarSystem.h"
00023
00024 namespace Marsyas
00025 {
00037 class ResampleNearestNeighbour: public MarSystem
00038 {
00039 private:
00040 void addControls();
00041 void myUpdate(MarControlPtr sender);
00042
00043 MarControlPtr ctrl_stretch_;
00044 MarControlPtr ctrl_samplingRateAdjustmentMode_;
00045
00046 public:
00047 ResampleNearestNeighbour(std::string name);
00048 ResampleNearestNeighbour(const ResampleNearestNeighbour& a);
00049 ~ResampleNearestNeighbour();
00050 MarSystem* clone() const;
00051
00052 void myProcess(realvec& in, realvec& out);
00053 };
00054
00055 }
00056
00057 #endif
00058