annotate trunk/src/Modules/SSI/ModuleSSI.h @ 305:ed91095d9240

-New AIMCopy main for the SSI features (temporary hack till I get a working module load system) -LocalMax strobe criterion. This is faster and better than the parabola version, which still seems buggy. -Noise generator module. Adds noise to a signal. Uses boost for the random number generator. -New options for the SSI -Slice now respects all its flags (oops!). -MATLAB functions for visualisation -Scripts for generating data to view in MATLAB -Script to download and build HTK - useful for running experiments
author tomwalters
date Thu, 25 Feb 2010 22:02:00 +0000
parents 4b3a43b543dd
children 30dde71d0230
rev   line source
tomwalters@284 1 // Copyright 2010, Thomas Walters
tomwalters@284 2 //
tomwalters@284 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@284 4 // http://www.acousticscale.org/AIMC
tomwalters@284 5 //
tomwalters@284 6 // This program is free software: you can redistribute it and/or modify
tomwalters@284 7 // it under the terms of the GNU General Public License as published by
tomwalters@284 8 // the Free Software Foundation, either version 3 of the License, or
tomwalters@284 9 // (at your option) any later version.
tomwalters@284 10 //
tomwalters@284 11 // This program is distributed in the hope that it will be useful,
tomwalters@284 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
tomwalters@284 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
tomwalters@284 14 // GNU General Public License for more details.
tomwalters@284 15 //
tomwalters@284 16 // You should have received a copy of the GNU General Public License
tomwalters@284 17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
tomwalters@284 18
tomwalters@284 19 /*!
tomwalters@284 20 * \author Thomas Walters <tom@acousticscale.org>
tomwalters@284 21 * \date created 2010/02/19
tomwalters@284 22 * \version \$Id$
tomwalters@284 23 */
tomwalters@284 24
tomwalters@284 25 #ifndef AIMC_MODULES_SSI_SSI_H_
tomwalters@284 26 #define AIMC_MODULES_SSI_SSI_H_
tomwalters@284 27
tomwalters@284 28 #include "Support/Module.h"
tomwalters@284 29
tomwalters@284 30 namespace aimc {
tomwalters@284 31 using std::vector;
tomwalters@284 32 class ModuleSSI : public Module {
tomwalters@284 33 public:
tomwalters@284 34 explicit ModuleSSI(Parameters *pParam);
tomwalters@284 35 virtual ~ModuleSSI();
tomwalters@284 36
tomwalters@284 37 /*! \brief Process a buffer
tomwalters@284 38 */
tomwalters@284 39 virtual void Process(const SignalBank &input);
tomwalters@284 40
tomwalters@284 41 private:
tomwalters@284 42 /*! \brief Reset the internal state of the module
tomwalters@284 43 */
tomwalters@284 44 virtual void ResetInternal();
tomwalters@284 45
tomwalters@284 46 /*! \brief Prepare the module
tomwalters@284 47 * \param input Input signal
tomwalters@284 48 * \param output true on success false on failure
tomwalters@284 49 */
tomwalters@284 50 virtual bool InitializeInternal(const SignalBank &input);
tomwalters@284 51
tomwalters@305 52 int ExtractPitchIndex(const SignalBank &input) const;
tomwalters@305 53
tomwalters@284 54 float sample_rate_;
tomwalters@284 55 int buffer_length_;
tomwalters@284 56 int channel_count_;
tomwalters@287 57 int ssi_width_samples_;
tomwalters@287 58 float ssi_width_cycles_;
tomwalters@305 59 float pivot_cf_;
tomwalters@284 60
tomwalters@284 61 bool do_pitch_cutoff_;
tomwalters@305 62 bool weight_by_cutoff_;
tomwalters@305 63 bool weight_by_scaling_;
tomwalters@305 64 bool log_cycles_axis_;
tomwalters@305 65 float pitch_search_start_ms_;
tomwalters@284 66 };
tomwalters@284 67 } // namespace aimc
tomwalters@284 68
tomwalters@284 69 #endif // AIMC_MODULES_SSI_SSI_H_