00001 // DiffAmp.h --- 00002 // 00003 // Filename: DiffAmp.h 00004 // Description: 00005 // Author: Subhasis Ray 00006 // Maintainer: 00007 // Created: Wed Feb 22 02:28:54 2012 (+0530) 00008 // Version: 00009 // Last-Updated: Wed Feb 22 03:03:01 2012 (+0530) 00010 // By: Subhasis Ray 00011 // Update #: 15 00012 // URL: 00013 // Keywords: 00014 // Compatibility: 00015 // 00016 // 00017 00018 // Commentary: 00019 // 00020 // 00021 // 00022 // 00023 00024 // Change log: 00025 // 00026 // 00027 // 00028 00029 // Code: 00030 00031 #ifndef _DIFFAMP_H 00032 #define _DIFFAMP_H 00033 00034 #include "../basecode/header.h" 00035 00036 class DiffAmp 00037 { 00038 public: 00039 DiffAmp(); 00040 ~DiffAmp(); 00041 void setGain(double gain); 00042 double getGain() const; 00043 void setSaturation(double saturation); 00044 double getSaturation() const; 00045 double getOutput() const; 00046 void plusFunc(double input); 00047 void minusFunc(double input); 00048 void process(const Eref& e, ProcPtr p); 00049 void reinit(const Eref& e, ProcPtr p); 00050 00051 static const Cinfo* initCinfo(); 00052 00053 protected: 00054 double gain_; 00055 double saturation_; 00056 double plus_; 00057 double minus_; 00058 double output_; 00059 }; 00060 00061 #endif 00062 00063 // 00064 // DiffAmp.h ends here