I'm using the snapshot tool to trace the amplitude of audio input and I'd like to put the 100 latest values into some sort of buffer/table/array. Subsequently I want to average those 100 values in order to extract a number representing the average level of audio activity in the past however many seconds. What would be the best way to store a set of 100 values. I've tried the write to table objects but they haven't worked for me. The tables contain 100 values but the values are all 0 even though numbers of 0 to 20 are being inputed into the write to table object. Could someone give me a simple example of how to preoperly write numbers to a table? Or if there's a better way to do what I'm trying to do please let me know the error in my ways!
Thanks a lot.
-
Writing to text file
-
I think the best way for you is just use [average] object. It allows you to have the average of the n last numbers .
You thought about write numbers and may be read them later. The best way for me is to use [Qlist] object. With this one, you are really writing in a text file.
So if you write with a [metro 20], it's almost continuosly, it's like sample audio.
I have made an example (in french, sorry) in the file : http://giair.music.free.fr/patchs/partage/sequenceurs/Giair_differents _types_sequences.zip -
thanks so much. Good advice.