diff src/Support/SignalBank.h @ 5:3c782dec2fc0

- Ported over HTK file output - Added some more meat to the Slaney IIR gammatone implementation - Ported over the AIM-MAT sf2003 parabola strobe algorithm - Finished making the SAI implementation compile - Ported over the strobe list class (now uses STL deques internally)
author tomwalters
date Thu, 18 Feb 2010 16:55:40 +0000
parents bc394a985042
children bd370910aa05
line wrap: on
line diff
--- a/src/Support/SignalBank.h	Tue Feb 16 18:40:55 2010 +0000
+++ b/src/Support/SignalBank.h	Thu Feb 18 16:55:40 2010 +0000
@@ -61,12 +61,15 @@
 
   float sample(int channel, int index) const;
   void set_sample(int channel, int index, float value);
-  const deque<int> &strobes(int channel) const;
+  int strobe(int channel, int index) const;
+  int strobe_count(int channel) const;
+  void AddStrobe(int channel, int time);
+  void ResetStrobes(int channel);
   float sample_rate() const;
   int buffer_length() const;
   int start_time() const;
   void set_start_time(int start_time);
-  float get_centre_frequency(int i) const;
+  float centre_frequency(int i) const;
   void set_centre_frequency(int i, float cf);
   bool initialized() const;
   int channel_count() const;
@@ -74,7 +77,7 @@
   int channel_count_;
   int buffer_length_;
   vector<vector<float> > signals_;
-  vector<deque<int> > strobes_;
+  vector<vector<int> > strobes_;
   vector<float> centre_frequencies_;
   float sample_rate_;
   int start_time_;