# HG changeset patch # User tomwalters # Date 1280955389 0 # Node ID 420965490ce13787a0de4af94b2be385e6dfd33c # Parent d4029d3124c47c648c69f06106a91901b869f87b - Add support for reading and writing vectors from signal banks. Useful for Python. diff -r d4029d3124c4 -r 420965490ce1 src/Support/SignalBank.h --- 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 &get_signal(int channel) const { return signals_[channel]; }; + + inline void set_signal(int channel, vector input) { + signals_[channel] = input; + } inline float sample(int channel, int index) const { return signals_[channel][index];