# Calculating the mean of a series of updated jit.matrices

Jay Harrison

Nov 26 2014 | 1:34 pm

Hello,

I am currently trying to find a way to calculate the mean of a series of updated matrices. Please read on for a brief summary of my patch.

With this patch I am aiming to have audio input fed into a pfft sub patch to create a FFT amplitude/frequency graph of the audio signal. I have managed to get this far and it works quite well, giving me an updated graph (in the form of a jit.matrix) every time the metro provides a bang.

What I would then like to realize is for the patch to calculate a mean graph from all of the updated FFT graphs that are triggered by the metro. So in short, an FFT graph that displays the average frequency content of an entire audio file.

I have found that the "mean" object does what I am after for single numbers so ideally the solution I am seeking would function in the same way as this but for a jit.matrix.

I have searched high and low for a suitable object and have had no luck so I would be very grateful if someone would be able to point me in the right direction with either a object or method that might be suitable.

Thank you very much for your time,

Jay