Mercurial > hg > aimc
comparison trunk/src/Support/SignalBank.h @ 443:f2dd5788e1d8
- Support for output as a set of PNG files.
author | tomwalters |
---|---|
date | Sun, 14 Nov 2010 05:56:50 +0000 |
parents | 733a11a65f3d |
children | 16a590fbc0ba |
comparison
equal
deleted
inserted
replaced
442:2d0b057e525c | 443:f2dd5788e1d8 |
---|---|
62 | 62 |
63 // Return a const reference to an individual signal. | 63 // Return a const reference to an individual signal. |
64 inline const vector<float> &get_signal(int channel) const { | 64 inline const vector<float> &get_signal(int channel) const { |
65 return signals_[channel]; | 65 return signals_[channel]; |
66 }; | 66 }; |
67 | 67 |
68 // Return a reference to the signal vector. The reference is not | 68 // Return a reference to the signal vector. The reference is not |
69 // const, so the vector is directly modifiable. In order to maintain | 69 // const, so the vector is directly modifiable. In order to maintain |
70 // consistency of the data within the filterbank, the size of this | 70 // consistency of the data within the filterbank, the size of this |
71 // vector should not be changed. Changes to the vector size can be picked | 71 // vector should not be changed. Changes to the vector size can be picked |
72 // up with a call to Validate(), which will return false if the sizes of | 72 // up with a call to Validate(), which will return false if the sizes of |
73 // channle vectors are not consistent. | 73 // channle vectors are not consistent. |
74 inline vector<float> &get_mutable_signal(int channel) { | 74 inline vector<float> &get_mutable_signal(int channel) { |
75 return signals_[channel]; | 75 return signals_[channel]; |
76 }; | 76 }; |
77 | 77 |
78 inline void set_signal(int channel, vector<float> input) { | 78 inline void set_signal(int channel, vector<float> input) { |
79 signals_[channel] = input; | 79 signals_[channel] = input; |
80 } | 80 } |
81 | 81 |
82 inline float sample(int channel, int index) const { | 82 inline float sample(int channel, int index) const { |