Mercurial > hg > aimc
comparison trunk/src/Support/SignalBank.h @ 277:6b4921704eb1
- 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 | c26222c51fb7 |
children | ef14c9f2c1d2 |
comparison
equal
deleted
inserted
replaced
276:a57b29e373c7 | 277:6b4921704eb1 |
---|---|
59 return signals_[channel]; | 59 return signals_[channel]; |
60 }; | 60 }; |
61 | 61 |
62 float sample(int channel, int index) const; | 62 float sample(int channel, int index) const; |
63 void set_sample(int channel, int index, float value); | 63 void set_sample(int channel, int index, float value); |
64 const deque<int> &strobes(int channel) const; | 64 int strobe(int channel, int index) const; |
65 int strobe_count(int channel) const; | |
66 void AddStrobe(int channel, int time); | |
67 void ResetStrobes(int channel); | |
65 float sample_rate() const; | 68 float sample_rate() const; |
66 int buffer_length() const; | 69 int buffer_length() const; |
67 int start_time() const; | 70 int start_time() const; |
68 void set_start_time(int start_time); | 71 void set_start_time(int start_time); |
69 float get_centre_frequency(int i) const; | 72 float centre_frequency(int i) const; |
70 void set_centre_frequency(int i, float cf); | 73 void set_centre_frequency(int i, float cf); |
71 bool initialized() const; | 74 bool initialized() const; |
72 int channel_count() const; | 75 int channel_count() const; |
73 private: | 76 private: |
74 int channel_count_; | 77 int channel_count_; |
75 int buffer_length_; | 78 int buffer_length_; |
76 vector<vector<float> > signals_; | 79 vector<vector<float> > signals_; |
77 vector<deque<int> > strobes_; | 80 vector<vector<int> > strobes_; |
78 vector<float> centre_frequencies_; | 81 vector<float> centre_frequencies_; |
79 float sample_rate_; | 82 float sample_rate_; |
80 int start_time_; | 83 int start_time_; |
81 bool initialized_; | 84 bool initialized_; |
82 DISALLOW_COPY_AND_ASSIGN(SignalBank); | 85 DISALLOW_COPY_AND_ASSIGN(SignalBank); |