changeset 167:420965490ce1

- Add support for reading and writing vectors from signal banks. Useful for Python.
author tomwalters
date Wed, 04 Aug 2010 20:56:29 +0000
parents d4029d3124c4
children a718fb21013c
files src/Support/SignalBank.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/Support/SignalBank.h	Wed Aug 04 07:20:26 2010 +0000
+++ b/src/Support/SignalBank.h	Wed Aug 04 20:56:29 2010 +0000
@@ -61,6 +61,10 @@
   inline const vector<float> &get_signal(int channel) const {
     return signals_[channel];
   };
+  
+  inline void set_signal(int channel, vector<float> input) {
+    signals_[channel] = input;
+  }
 
   inline float sample(int channel, int index) const {
     return signals_[channel][index];