tomwalters@12: // Copyright 2010, Thomas Walters tomwalters@12: // tomwalters@12: // AIM-C: A C++ implementation of the Auditory Image Model tomwalters@12: // http://www.acousticscale.org/AIMC tomwalters@12: // tomwalters@12: // This program is free software: you can redistribute it and/or modify tomwalters@12: // it under the terms of the GNU General Public License as published by tomwalters@12: // the Free Software Foundation, either version 3 of the License, or tomwalters@12: // (at your option) any later version. tomwalters@12: // tomwalters@12: // This program is distributed in the hope that it will be useful, tomwalters@12: // but WITHOUT ANY WARRANTY; without even the implied warranty of tomwalters@12: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the tomwalters@12: // GNU General Public License for more details. tomwalters@12: // tomwalters@12: // You should have received a copy of the GNU General Public License tomwalters@12: // along with this program. If not, see . tomwalters@12: tomwalters@12: /*! tomwalters@12: * \author Thomas Walters tomwalters@12: * \date created 2010/02/19 tomwalters@12: * \version \$Id$ tomwalters@12: */ tomwalters@12: tomwalters@12: #ifndef AIMC_MODULES_SSI_SSI_H_ tomwalters@12: #define AIMC_MODULES_SSI_SSI_H_ tomwalters@12: tomwalters@12: #include "Support/Module.h" tomwalters@12: tomwalters@12: namespace aimc { tomwalters@12: using std::vector; tomwalters@12: class ModuleSSI : public Module { tomwalters@12: public: tomwalters@12: explicit ModuleSSI(Parameters *pParam); tomwalters@12: virtual ~ModuleSSI(); tomwalters@12: tomwalters@12: /*! \brief Process a buffer tomwalters@12: */ tomwalters@12: virtual void Process(const SignalBank &input); tomwalters@12: tomwalters@12: private: tomwalters@12: /*! \brief Reset the internal state of the module tomwalters@12: */ tomwalters@12: virtual void ResetInternal(); tomwalters@12: tomwalters@12: /*! \brief Prepare the module tomwalters@12: * \param input Input signal tomwalters@12: * \param output true on success false on failure tomwalters@12: */ tomwalters@12: virtual bool InitializeInternal(const SignalBank &input); tomwalters@12: tomwalters@12: float sample_rate_; tomwalters@12: int buffer_length_; tomwalters@12: int channel_count_; tomwalters@15: int ssi_width_samples_; tomwalters@15: float ssi_width_cycles_; tomwalters@12: tomwalters@12: bool do_pitch_cutoff_; tomwalters@12: }; tomwalters@12: } // namespace aimc tomwalters@12: tomwalters@12: #endif // AIMC_MODULES_SSI_SSI_H_