comparison trunk/src/Modules/SAI/ModuleSAI.cc @ 296:fe5ce00a64f5

-Added AIMCopy, a replacement for HTK's HCopy -Set "Id" keyword on all .cc, .h and .py files -Added FileList class to aupport AIMCopy -Added a first go at a Module factory class. It's not to be used at the moment, but it will serve as a reminder to implement a proper factory soon.
author tomwalters
date Tue, 23 Feb 2010 12:47:01 +0000
parents 4b3a43b543dd
children 30dde71d0230
comparison
equal deleted inserted replaced
295:9b049b78233d 296:fe5ce00a64f5
21 */ 21 */
22 22
23 /* 23 /*
24 * \author Thomas Walters <tom@acousticscale.org> 24 * \author Thomas Walters <tom@acousticscale.org>
25 * \date created 2007/08/29 25 * \date created 2007/08/29
26 * \version \$Id: ModuleSAI.cc 4 2010-02-03 18:44:58Z tcw $ 26 * \version \$Id$
27 */ 27 */
28 #include <cmath> 28 #include <cmath>
29 29
30 #include "Modules/SAI/ModuleSAI.h" 30 #include "Modules/SAI/ModuleSAI.h"
31 31
32 namespace aimc { 32 namespace aimc {
33 ModuleSAI::ModuleSAI(Parameters *parameters) : Module(parameters) { 33 ModuleSAI::ModuleSAI(Parameters *parameters) : Module(parameters) {
34 module_identifier_ = "weighted_sai"; 34 module_identifier_ = "weighted_sai";
35 module_type_ = "sai"; 35 module_type_ = "sai";
36 module_description_ = "Stabilised auditory image"; 36 module_description_ = "Stabilised auditory image";
37 module_version_ = "$Id: ModuleSAI.cc 4 2010-02-03 18:44:58Z tcw $"; 37 module_version_ = "$Id$";
38 38
39 min_delay_ms_ = parameters_->DefaultFloat("sai.min_delay_ms", 0.0f); 39 min_delay_ms_ = parameters_->DefaultFloat("sai.min_delay_ms", 0.0f);
40 max_delay_ms_ = parameters_->DefaultFloat("sai.max_delay_ms", 35.0f); 40 max_delay_ms_ = parameters_->DefaultFloat("sai.max_delay_ms", 35.0f);
41 strobe_weight_alpha_ = parameters_->DefaultFloat("sai.strobe_weight_alpha", 41 strobe_weight_alpha_ = parameters_->DefaultFloat("sai.strobe_weight_alpha",
42 0.5f); 42 0.5f);